/* css/reports.css */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz@14..32&display=swap');

* {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { background-color: #f4f7fb; }

/* custom navy/teal palette */
.bg-navy-sidebar { background-color: #0c2538; }
.bg-navy-deep { background-color: #0b1f33; }
.text-teal-logo { color: #5ee0d0; }
.border-teal-light { border-color: #2aa79b33; }

/* hover effect for nav items */
.hover-nav:hover { background-color: #1f4e5e; color: white; }

/* active navigation item */
.active-nav {
    background-color: #1a4450;
    border-left: 4px solid #2aa79b;
}

/* stat card styles */
.stat-card {
    transition: all 0.2s ease;
    border: 1px solid #eef2f6;
    background-color: white;
    border-radius: 0.75rem;
}
.stat-card:hover { box-shadow: 0 8px 20px -8px rgba(18, 79, 86, 0.15); }

/* dashboard background */
.bg-dashboard-bg { background-color: #f4f7fb; }

/* badge styles */
.badge-pending, .badge-approved, .badge-draft, .badge-expired {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 500;
}
.badge-pending { background-color: #fef9e7; color: #b78103; }
.badge-approved { background-color: #e3f7ec; color: #0f7b4b; }

/* status colors */
.bg-teal-100 { background-color: #f0fdfa; }
.text-teal-700 { color: #0f766e; }
.bg-green-100 { background-color: #dcfce7; }
.text-green-700 { color: #15803d; }
.bg-amber-100 { background-color: #fef3c7; }
.text-amber-700 { color: #b45309; }
.bg-red-100 { background-color: #fee2e2; }
.text-red-700 { color: #b91c1c; }
.bg-blue-100 { background-color: #dbeafe; }
.text-blue-700 { color: #1d4ed8; }
.bg-indigo-100 { background-color: #e0e7ff; }
.text-indigo-700 { color: #4338ca; }
.bg-purple-100 { background-color: #f3e8ff; }
.text-purple-700 { color: #7e22ce; }
.bg-yellow-100 { background-color: #fef9e7; }
.text-yellow-700 { color: #b78103; }

/* progress bar colors */
.bg-teal-600 { background-color: #0d9488; }
.bg-amber-600 { background-color: #d97706; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-green-600 { background-color: #16a34a; }
.bg-red-600 { background-color: #dc2626; }
.bg-gray-600 { background-color: #4b5563; }
.bg-blue-600 { background-color: #2563eb; }
.bg-purple-600 { background-color: #9333ea; }
.bg-yellow-600 { background-color: #ca8a04; }

/* transitions */
.transition, .transition-colors { transition: all 0.2s ease; }

/* focus states */
input:focus, select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 1px #14b8a6;
}

/* button styling */
.bg-teal-700 { background-color: #0f766e; }
.bg-teal-700:hover { background-color: #115e59; }

/* tab styling */
#reportTabs a.active-tab {
    color: #0f766e;
    border-bottom-color: #0f766e;
}

/* mobile header spacer */
.mobile-header-spacer { height: 60px; width: 100%; }

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

/* Sidebar - Mobile */
@media (max-width: 768px) {
    .w-72 {
        width: 280px;
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    .w-72.open { left: 0; }
    main { width: 100%; margin-left: 0; }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 1001;
        background: #0c2538;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 8px 12px;
        cursor: pointer;
        font-size: 1.25rem;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .sidebar-overlay.active { display: block; }
}

@media (min-width: 769px) {
    .menu-toggle { display: none; }
    .sidebar-overlay { display: none !important; }
    .w-72 { position: relative; left: 0 !important; }
    .mobile-header-spacer { display: none; }
}

/* Stats cards responsive */
@media (max-width: 640px) {
    .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 { grid-template-columns: 1fr; }
    .grid-cols-1.lg\:grid-cols-2 { grid-template-columns: 1fr; }
    .grid-cols-1.sm\:grid-cols-3 { grid-template-columns: 1fr; }
    .stat-card { padding: 1rem; }
    .text-2xl.md\:text-3xl { font-size: 1.5rem; }
}

/* Tabs responsive */
@media (max-width: 640px) {
    #reportTabs li a { padding: 0.5rem 0.75rem; font-size: 0.7rem; }
}

/* Filter controls responsive */
@media (max-width: 768px) {
    .flex.flex-col.lg\:flex-row { flex-direction: column; }
    .flex.flex-wrap.gap-2 { width: 100%; }
    .flex.flex-wrap.gap-2 button, .flex.flex-wrap.gap-2 select { flex: 1; }
}

/* Header responsive */
@media (max-width: 640px) {
    h1 { font-size: 1.5rem; }
    .text-sm.text-gray-500.mt-1 { font-size: 0.75rem; }
}

/* Tables responsive */
@media (max-width: 768px) {
    .overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Touch-friendly */
@media (max-width: 768px) {
    button, a { min-height: 44px; min-width: 44px; }
    body { font-size: 14px; }
    input, select { font-size: 16px !important; }
}

/* Progress bar width */
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Print styles */
@media print {
    .sidebar, nav, .menu-toggle, button {
        display: none !important;
    }
    main {
        margin: 0;
        padding: 0;
    }
    .stat-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}