
/* ============================================
   IFMUVA Style Theme for phpVMS
   Primary: #002068 (Deep Navy)
   Secondary: #bc000c (Deep Red)
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary: #002068;
    --primary-light: #003399;
    --primary-dark: #001040;
    --secondary: #bc000c;
    --secondary-light: #e00010;
    --accent: #002068;
    --bg-primary: #f7f9fc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-dark: #001a4a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.18);
    --shadow-sm: 0 1px 3px rgba(0, 32, 104, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 32, 104, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 32, 104, 0.12);
    --shadow-xl: 0 24px 60px rgba(0, 32, 104, 0.15);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
}

/* Global Styles */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.font-headline,
.font-heading {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* Body */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar, .bg-primary, [class*="navbar"] {
    background: linear-gradient(135deg, #001040 0%, #002068 50%, #003399 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 16, 64, 0.3);
    border: none;
}

.navbar-brand, .navbar-brand img {
    height: 36px;
}

.nav-link, .navbar a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.nav-link:hover, .navbar a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 32, 104, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 32, 104, 0.35) !important;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%) !important;
}

.btn-secondary, .btn-outline-secondary {
    background: rgba(247, 249, 252, 0.7) !important;
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color) !important;
    color: var(--primary) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.btn-secondary:hover, .btn-outline-secondary:hover {
    background: #ffffff !important;
    box-shadow: var(--shadow-md) !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--secondary) 0%, #930007 100%) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 12px rgba(188, 0, 12, 0.25) !important;
}

.btn-danger:hover {
    box-shadow: 0 8px 24px rgba(188, 0, 12, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* Cards */
.card, .glass-panel {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    overflow: hidden;
}

.card:hover, .glass-panel:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-2px);
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1.25rem 1.5rem !important;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem !important;
}

/* Hero Banner */
.hero-section, .page-header, .content-header {
    background: linear-gradient(135deg, #001040 0%, #002068 40%, #003399 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before, .page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(188, 0, 12, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1, .page-header h1 {
    color: white;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.3);
}

/* Tables */
.table {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--primary);
    font-family: 'Inter', sans-serif;
}

.table tbody tr {
    transition: all 0.15s ease;
}

.table tbody tr:hover {
    background: rgba(0, 32, 104, 0.03);
}

.table td {
    padding: 0.875rem 1.25rem;
    vertical-align: middle;
    border-color: var(--border-color);
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.7rem 1rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.2s ease !important;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 32, 104, 0.1) !important;
    background: #ffffff !important;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

/* Badges */
.badge {
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.7rem !important;
    padding: 0.35em 0.8em !important;
    letter-spacing: 0.05em;
}

.badge.bg-primary, .badge-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
}

.badge.bg-success, .badge-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
}

.badge.bg-warning, .badge-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
}

.badge.bg-danger, .badge-danger {
    background: linear-gradient(135deg, var(--secondary) 0%, #dc2626 100%) !important;
}

/* Sidebar (Admin) */
.sidebar, [class*="sidebar"] {
    background: linear-gradient(180deg, #001040 0%, #001a5a 100%);
    border: none;
}

.sidebar .nav-link, [class*="sidebar"] .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: var(--radius-md);
    margin: 2px 8px;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover, [class*="sidebar"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.sidebar .nav-link.active, [class*="sidebar"] .nav-link.active {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 32, 104, 0.3);
}

/* Footer */
footer, .footer {
    background: linear-gradient(135deg, #001040 0%, #002068 100%) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 2rem 0;
    border: none;
}

footer a, .footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.2s ease;
}

footer a:hover, .footer a:hover {
    color: white !important;
}

/* Widgets */
.widget-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.widget-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.widget-card .widget-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

/* Stats Cards */
.stats-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stats-card .stats-value {
    font-family: 'Manrope', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.stats-card .stats-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Live Map */
.live-map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Flight Cards */
.flight-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.flight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.flight-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(135deg, rgba(0, 32, 104, 0.03) 0%, rgba(188, 0, 12, 0.02) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1, .page-header h1 {
        font-size: 1.75rem;
    }

    .stats-card .stats-value {
        font-size: 2rem;
    }
}

/* Dark mode support */
[data-bs-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.12);
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .glass-panel {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(148, 163, 184, 0.12) !important;
}

[data-bs-theme="dark"] .table thead th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #f1f5f9 !important;
}

