/* ANZAR MEDIA SYSTEM - Premium Dark Gold Theme */
/* ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* 🎨 COLOR PALETTE - Deep Gold Premium */
    --bg-deep: #0a0a0f;
    --bg-surface: rgba(20, 18, 15, 0.8);
    --bg-card: rgba(25, 22, 18, 0.6);
    --bg-card-hover: rgba(35, 30, 24, 0.7);

    /* Gold Accents */
    --accent-gold: #d4af37;
    --accent-gold-light: #f4d03f;
    --accent-gold-dark: #b8860b;
    --accent-glow: rgba(212, 175, 55, 0.3);

    /* Status Colors */
    --accent-success: #22c55e;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #3b82f6;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --text-gold: #d4af37;

    /* Borders & Glass */
    --glass-border: 1px solid rgba(212, 175, 55, 0.15);
    --glass-border-light: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);

    /* Spacing & Radius */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* 🏎️ RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(184, 134, 11, 0.03) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

/* 🧱 LAYOUT */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* 🛥️ SIDEBAR */
.sidebar {
    background: rgba(15, 13, 10, 0.95);
    backdrop-filter: blur(20px);
    border-right: var(--glass-border);
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    margin-bottom: 30px;
}

.logo-area img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 50%, var(--accent-gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 15px;
    margin-bottom: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1rem;
    width: 22px;
    text-align: center;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item:hover i {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.nav-item.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.nav-item.active i {
    color: var(--accent-gold);
}

/* 📄 MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px 40px;
    padding-bottom: 80px;
    min-height: 100vh;
    width: calc(100% - 260px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 5px;
}

.subtitle {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 🃏 CARDS */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
}

.card-gold {
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-link {
    text-decoration: none;
    display: block;
}

/* 📊 STATS CARDS */
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-value.gold {
    color: var(--accent-gold);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* 🔘 BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.btn-gold:hover::after {
    left: 100%;
    top: 100%;
}

.btn-gold:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* 💊 ACTION PILLS */
.action-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
}

.action-pill i {
    font-size: 0.8rem;
}

.action-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.action-pill.gold:hover {
    background: var(--accent-gold);
    color: var(--bg-deep) !important;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.action-pill.danger:hover {
    background: #ff4d4d;
    color: white !important;
    border-color: #ff4d4d;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.btn-pill {
    border-radius: 30px;
    padding: 8px 20px;
}

/* 🔘 PREMIUM ICON BUTTONS */
.btn-icon-premium {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-icon-premium:hover {
    background: var(--accent-gold);
    color: var(--bg-deep);
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-icon-premium.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
}

.btn-icon-premium.danger:hover {
    background: var(--accent-danger);
    color: white;
}

/* ❌ MODAL CLOSE BUTTON */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.1);
    transform: rotate(90deg);
}

.modal-header {
    position: relative;
    margin-bottom: 20px;
    padding-right: 40px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
    background: var(--accent-danger);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--accent-success);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* 💊 STATUS PILLS */
.status-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-green {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.status-gray {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 📝 FORMS */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

input,
select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

input::placeholder {
    color: var(--text-tertiary);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d4af37' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* 📋 TABLES */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: var(--glass-border-light);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px 20px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

tr:hover td {
    background: rgba(212, 175, 55, 0.03);
}

tr:last-child td {
    border-bottom: none;
}

/* 📊 GRIDS */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Filter Form Responsive */
.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: flex-end;
}

/* Ideas Container */
.ideas-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* Shootings Grid */
.shootings-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* 🔄 UTILITIES */
.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.gap-20 {
    gap: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.text-gold {
    color: var(--accent-gold);
}

.text-green {
    color: var(--accent-success);
}

.text-red {
    color: var(--accent-danger);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-sm {
    font-size: 0.85rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

.w-100 {
    width: 100%;
}

/* 🎭 ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out backwards;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* 🔔 ALERTS */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 1000px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--accent-success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-warning);
}

/* 🎯 TIMER */
.timer-display {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Inter', monospace;
    color: var(--accent-gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.timer-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* 📅 CALENDAR */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: rgba(212, 175, 55, 0.1);
}

.calendar-day.today {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--accent-gold);
}

.calendar-event {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 4px;
}

/* 📊 PROGRESS BAR */
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar-fill.green {
    background: var(--accent-success);
}

.progress-bar-fill.orange {
    background: var(--accent-warning);
}

.progress-bar-fill.red {
    background: var(--accent-danger);
}

.progress-bar-fill.gold {
    background: var(--accent-gold);
}

/* 🕒 ACTIVITY TIMELINE - PREMIUM */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    animation: fadeInScale 0.4s ease-out;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--bg-deep);
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 15px;
    transition: all 0.2s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateX(5px);
}

.timeline-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.timeline-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    word-break: break-all;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateX(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* MODAL BLUR ENHANCEMENT */
.modal-overlay {
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 175, 55, 0.1);
}

/* 🔐 LOGIN PAGE */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.login-logo {
    width: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.login-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* 📄 INVOICE PRINT STYLES */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .no-print {
        display: none !important;
    }

    .invoice-container {
        padding: 0;
        box-shadow: none;
    }
}

/* 📱 RESPONSIVE */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #111116;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0 20px;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Mobile header logo area - reset desktop styles */
.mobile-header .logo-area {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    gap: 10px;
    display: flex;
    align-items: center;
}

.mobile-header .logo-area img {
    width: 36px;
    height: 36px;
}

.hamburger {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================== */
/* 🖥️ TABLET BREAKPOINT (max-width: 1200px) */
/* ========================================== */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================== */
/* 📱 MOBILE BREAKPOINT (max-width: 768px) */
/* ========================================== */
@media (max-width: 768px) {
    /* CRITICAL: Force all elements to respect viewport width */
    *, *::before, *::after {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* Show mobile header */
    .mobile-header {
        display: flex;
    }

    /* App container becomes block layout on mobile */
    .app-container {
        display: block;
        padding-top: 60px;
        width: 100%;
        overflow-x: hidden;
    }

    /* Sidebar slides in from left */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 10000;
        width: 280px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
        padding-top: 20px;
        padding-bottom: 80px;
    }

    .sidebar.active {
        left: 0;
    }

    /* Reset sidebar logo area margin on mobile */
    .sidebar .logo-area {
        margin-bottom: 20px;
    }

    /* Ensure logout button has safe area padding */
    .sidebar .nav-item:last-child {
        margin-bottom: 20px;
    }

    /* Main content takes full width */
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
        width: 100%;
    }

    /* All grids become single column */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Span helpers reset for mobile */
    [style*="grid-column: span"] {
        grid-column: auto !important;
    }

    /* Table Responsiveness */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
        background: rgba(0, 0, 0, 0.2);
    }

    table {
        min-width: 500px;
    }

    table th,
    table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    /* Modal Responsiveness */
    .modal-content {
        width: 95% !important;
        margin: 10px auto;
        padding: 20px;
    }

    /* Page header stacks on mobile */
    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center !important;
        justify-content: center !important;
    }

    .page-header > * {
        text-align: center !important;
        width: 100%;
    }

    .page-header h1,
    .page-header .subtitle {
        text-align: center !important;
    }

    /* KPI Adjustments */
    .stat-value {
        font-size: 1.8rem;
    }

    /* Form grid adjustments */
    .grid-2.gap-15,
    .grid-3.gap-10 {
        grid-template-columns: 1fr;
    }

    /* Ideas grid responsive */
    .ideas-grid {
        grid-template-columns: 1fr !important;
    }

    /* Shootings filter responsive */
    .filter-form {
        display: block !important;
        width: 100% !important;
    }

    .filter-form > * {
        width: 100% !important;
        margin-bottom: 15px;
    }

    /* Form inputs - ensure proper touch targets */
    input[type="text"],
    input[type="date"],
    input[type="time"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
        min-height: 44px;
    }

    /* Card spacing on mobile */
    .card {
        padding: 15px;
        overflow-x: hidden;
    }

    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Column span helpers for mobile */
    .col-span-1,
    .col-span-2 {
        grid-column: auto !important;
    }

    /* Touch-friendly buttons */
    button,
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Ideas container mobile */
    .ideas-container {
        grid-template-columns: 1fr;
    }

    .ideas-form-card,
    .ideas-list-card {
        grid-column: auto;
    }

    /* Shootings grid mobile */
    .shootings-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .shootings-grid > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    .shootings-form,
    .shootings-list,
    .col-span-1,
    .col-span-2 {
        grid-column: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ensure cards don't overflow */
    .shootings-grid .card,
    .ideas-container .card {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
        box-sizing: border-box !important;
    }

    /* Form controls - full width */
    .form-control,
    .form-control:focus {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }

    /* Button full width on mobile */
    .btn-block {
        width: 100% !important;
    }

    /* Ideas form inputs */
    .problem-input,
    input[name="comment"] {
        min-width: 100px !important;
        flex: 1 !important;
        max-width: 100%;
        width: 100% !important;
    }
}

/* ========================================== */
/* 📱 EXTRA SMALL SCREENS (max-width: 480px) */
/* ========================================== */
@media (max-width: 480px) {
    .main-content {
        padding: 10px 8px;
    }

    .card {
        padding: 12px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Reduce gaps on very small screens */
    .gap-20 {
        gap: 12px !important;
    }

    .gap-15 {
        gap: 10px !important;
    }
}
