# ==============================================================================
# Global & Environment Files
# ==============================================================================
.env
.env.*
.env.backup
.env.production
.env.local
.env.development.local
.env.test.local
.env.production.local
!**/.env.example
auth.json

# ==============================================================================
# Large Files & Archives (Prevents GitHub 100MB rejection)
# ==============================================================================
*.zip
*.tar
*.tar.gz
*.rar
*.7z
*.iso
*.sql
*.sqlite
*.bak

# ==============================================================================
# Dependencies
# ==============================================================================
node_modules/
**/node_modules/
vendor/
**/vendor/
.pnp/
**/pnp/
.pnp.*
**/.pnp.*
.yarn/*
!*.yarn/patches
!*.yarn/plugins
!*.yarn/releases
!*.yarn/versions

# ==============================================================================
# Frontend (Next.js / React / TypeScript / Builds)
# ==============================================================================
.next/
**/.next/
out/
**/out/
build/
**/build/
dist/
**/dist/
.vercel/
**/.vercel/
*.tsbuildinfo
next-env.d.ts
coverage/
**/coverage/

# ==============================================================================
# Backend & CRM (Laravel / PHP)
# ==============================================================================
.phpunit.cache/
**/.phpunit.cache/
.phpunit.result.cache
**/.phpunit.result.cache
.phpactor.json
**/.phpactor.json
Homestead.json
Homestead.yaml

# Laravel Public Assets
public/storage
**/public/storage
public/hot
**/public/hot
public/build
**/public/build

# Laravel Storage & Cache
storage/*.key
**/storage/*.key
storage/pail
**/storage/pail
storage/framework/cache/data/*
!storage/framework/cache/data/.gitignore
**/storage/framework/cache/data/*
!**/storage/framework/cache/data/.gitignore
storage/framework/sessions/*
!storage/framework/sessions/.gitignore
**/storage/framework/sessions/*
!**/storage/framework/sessions/.gitignore
storage/framework/views/*
!storage/framework/views/.gitignore
**/storage/framework/views/*
!**/storage/framework/views/.gitignore
storage/logs/*
!storage/logs/.gitignore
**/storage/logs/*
!**/storage/logs/.gitignore
bootstrap/cache/*
!bootstrap/cache/.gitignore
**/bootstrap/cache/*
!**/bootstrap/cache/.gitignore

# ==============================================================================
# Logs & Debug
# ==============================================================================
*.log
**/*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# ==============================================================================
# Temporary / Scratch Scripts
# ==============================================================================
_tmp_*
**/_tmp_*
*.tmp
scratch/
**/scratch/

# ==============================================================================
# IDEs & Operating System Files
# ==============================================================================
.DS_Store
Thumbs.db
.idea/
**/.idea/
.vscode/
**/.vscode/
.fleet/
**/.fleet/
.nova/
**/.nova/
.zed/
**/.zed/
*.pem
