/* =================================================================
   AIR SICILIA VIRTUAL - Professional Dark Theme for phpVMS 7
   Based on https://www.airsiciliavirtual.com/
   ================================================================= */

:root {
    /* Dark Professional Palette */
    --primary-dark: #1a1a2e;
    --secondary-dark: #16213e;
    --accent-gold: #ffd700;
    --accent-orange: #ff6b35;
    --bg-dark: #0f0f1e;
    --bg-card: #1f1f35;
    --text-light: #f4f4f9;
    --text-gray: #a0a0a0;
    --text-muted: #6c757d;
    
    /* Status Colors */
    --success: #00d084;
    --warning: #ffa500;
    --danger: #ff4757;
    --info: #1e90ff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* ===========================
   GLOBAL STYLES
   =========================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(245, 87, 108, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffed4e;
    text-decoration: none;
}

/* ===========================
   NAVIGATION BAR
   =========================== */

.navbar {
    background: rgba(26, 26, 46, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid var(--accent-gold);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 1px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-gold);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--accent-gold) !important;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: var(--accent-gold) !important;
}

.navbar-toggler {
    border-color: var(--accent-gold);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 215, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.15;
    animation: bgScroll 30s linear infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bgScroll {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
}

/* ===========================
   CARDS
   =========================== */

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.15), 0 0 40px rgba(102, 126, 234, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.card-header {
    background: var(--gradient-dark);
    border-bottom: 2px solid var(--accent-gold);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Statistics Cards */
.stat-card {
    background: var(--gradient-primary);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-card i {
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Flight Cards */
.flight-card {
    border-left: 4px solid var(--accent-gold);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(26, 26, 46, 0.8) 100%);
}

.flight-card:hover {
    border-left-color: var(--accent-orange);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.2);
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-warning {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    font-weight: 700;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #00d084 0%, #00b376 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #e84118 100%);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-dark);
}

/* ===========================
   BADGES
   =========================== */

.badge {
    padding: 0.5em 1em;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.bg-success { background: var(--success) !important; }
.bg-warning { background: var(--warning) !important; color: #000; }
.bg-danger { background: var(--danger) !important; }
.bg-info { background: var(--info) !important; }

/* ===========================
   TABLES
   =========================== */

.table {
    color: var(--text-light);
}

.table thead th {
    background: var(--secondary-dark);
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 1rem;
}

.table tbody tr {
    background: rgba(31, 31, 53, 0.5);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.01);
}

.table tbody td {
    border-color: rgba(255, 215, 0, 0.1);
    padding: 1rem;
    vertical-align: middle;
}

/* ===========================
   FOOTER
   =========================== */

footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--accent-gold);
}

footer h5 {
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: var(--text-gray);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

footer .social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
}

/* ===========================
   FORMS
   =========================== */

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--text-light);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===========================
   ANIMATIONS & UTILITIES
   =========================== */

.skeleton-loader {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.text-muted {
    color: var(--text-gray) !important;
}

.text-gold {
    color: var(--accent-gold);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffed4e;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

/* Loading spinner */
.spinner-border-primary {
    border-color: var(--accent-gold);
    border-right-color: transparent;
}
