/**
 * Falcon International - Forex & Container Shipping
 * Custom Theme & PDF Color Palette Matching
 */
:root {
    --falcon-bg-body: #060913;
    --falcon-bg-surface: #0a1122;
    --falcon-bg-surface-2: #0f1930;
    --falcon-bg-card: rgba(8, 16, 36, 0.48);
    --falcon-card-border: rgba(212, 175, 55, 0.22);
    --falcon-card-border-gold: rgba(212, 175, 55, 0.45);
    
    --falcon-cyan: #06b6d4;
    --falcon-cyan-hover: #38bdf8;
    --falcon-cyan-glow: 0 0 20px rgba(6, 182, 212, 0.30);
    --falcon-cyan-gradient: linear-gradient(135deg, #a5f3fc 0%, #06b6d4 52%, #0369a1 100%);
    
    --falcon-gold: #d4af37;
    --falcon-gold-light: #f7df8b;
    --falcon-gold-dark: #aa8214;
    --falcon-gold-gradient: linear-gradient(135deg, #fff2b2 0%, #f7df8b 25%, #d4af37 55%, #aa8214 85%, #8c6708 100%);
    --falcon-gold-glow: 0 0 25px rgba(212, 175, 55, 0.35);
    
    --falcon-green: #10b981;
    --falcon-purple: #8b5cf6;
    --falcon-red: #ef4444;
    
    --falcon-text: #f8fafc;
    --falcon-text-muted: #94a3b8;
    --falcon-text-dim: #64748b;
    
    --falcon-radius-sm: 8px;
    --falcon-radius: 14px;
    --falcon-radius-lg: 20px;
}

body.falcon-theme {
    color: var(--falcon-text);
    font-family: 'Outfit', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

/* Background grid glow */
.falcon-glow-bg {
    background: transparent !important;
}

/* Glassmorphism Cards */
.falcon-card {
    background: var(--falcon-bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--falcon-card-border);
    border-radius: var(--falcon-radius);
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.falcon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px 0 rgba(248, 192, 96, 0.15);
    border-color: rgba(248, 192, 96, 0.4);
}

.falcon-card.gold-border {
    border-color: var(--falcon-card-border-gold);
}

.falcon-card.gold-border:hover {
    box-shadow: 0 12px 36px 0 rgba(229, 184, 105, 0.2);
    border-color: rgba(229, 184, 105, 0.6);
}

/* Card Glow Corner */
.falcon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--falcon-cyan), transparent);
    opacity: 0.6;
}

.falcon-card.gold-border::before {
    background: linear-gradient(90deg, transparent, var(--falcon-gold), transparent);
}

/* Gradients & Text */
.text-cyan {
    color: var(--falcon-cyan) !important;
}

.text-gold {
    color: var(--falcon-gold) !important;
}

.gold-gradient-text {
    background: var(--falcon-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.cyan-gradient-text {
    background: var(--falcon-cyan-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Buttons */
.btn-falcon-cyan {
    background: var(--falcon-cyan-gradient);
    color: #060c17 !important;
    font-weight: 600;
    border: none;
    border-radius: var(--falcon-radius-sm);
    padding: 10px 22px;
    letter-spacing: 0.5px;
    box-shadow: var(--falcon-cyan-glow);
    transition: all 0.25s ease;
}

.btn-falcon-cyan:hover {
    opacity: 0.95;
    box-shadow: 0 0 25px rgba(248, 192, 96, 0.6);
    transform: translateY(-1px);
}

.btn-falcon-gold {
    background: var(--falcon-gold-gradient);
    color: #1a1002 !important;
    font-weight: 600;
    border: none;
    border-radius: var(--falcon-radius-sm);
    padding: 10px 22px;
    letter-spacing: 0.5px;
    box-shadow: var(--falcon-gold-glow);
    transition: all 0.25s ease;
}

.btn-falcon-gold:hover {
    opacity: 0.95;
    box-shadow: 0 0 25px rgba(229, 184, 105, 0.6);
    transform: translateY(-1px);
}

.btn-falcon-outline {
    background: transparent;
    color: var(--falcon-cyan) !important;
    border: 1px solid var(--falcon-cyan);
    border-radius: var(--falcon-radius-sm);
    padding: 10px 22px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-falcon-outline:hover {
    background: rgba(248, 192, 96, 0.12);
    box-shadow: var(--falcon-cyan-glow);
}

.btn-falcon-gold-outline {
    background: transparent;
    color: var(--falcon-gold) !important;
    border: 1px solid var(--falcon-gold);
    border-radius: var(--falcon-radius-sm);
    padding: 10px 22px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-falcon-gold-outline:hover {
    background: rgba(229, 184, 105, 0.12);
    box-shadow: var(--falcon-gold-glow);
}

/* Stat Box */
.falcon-stat-box {
    display: flex;
    align-items: center;
    gap: 18px;
}

.falcon-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.falcon-stat-icon.cyan {
    background: rgba(248, 192, 96, 0.12);
    color: var(--falcon-cyan);
    border: 1px solid rgba(248, 192, 96, 0.3);
}

.falcon-stat-icon.gold {
    background: rgba(229, 184, 105, 0.12);
    color: var(--falcon-gold);
    border: 1px solid rgba(229, 184, 105, 0.3);
}

.falcon-stat-icon.green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--falcon-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.falcon-stat-icon.purple {
    background: rgba(139, 92, 246, 0.12);
    color: var(--falcon-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.falcon-stat-val {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.falcon-stat-label {
    font-size: 13px;
    color: var(--falcon-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* Capping Progress Meter */
.capping-track {
    background: rgba(255, 255, 255, 0.08);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.capping-bar {
    height: 100%;
    background: linear-gradient(90deg, #f8c060, #ffe6a8, #b87028);
    border-radius: 6px;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(248, 192, 96, 0.5);
}

/* Fastage Achiever Badges */
.fastage-card {
    background: linear-gradient(145deg, rgba(16, 30, 54, 0.95), rgba(7, 13, 24, 0.95));
    border: 1px solid rgba(248, 192, 96, 0.25);
    border-radius: var(--falcon-radius);
    padding: 20px;
    position: relative;
    transition: transform 0.25s ease;
}

.fastage-card.active-fastage {
    border-color: var(--falcon-gold);
    box-shadow: 0 0 25px rgba(229, 184, 105, 0.25);
}

/* Live Forex Ticker */
.forex-ticker-container {
    background: #091222;
    border-bottom: 1px solid rgba(248, 192, 96, 0.15);
    padding: 8px 16px;
    overflow-x: auto;
    white-space: nowrap;
}

.forex-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 28px;
    font-size: 13px;
}

.forex-ticker-item .symbol {
    font-weight: 700;
    color: #ffffff;
}

.forex-ticker-item .price {
    color: var(--falcon-cyan);
    font-family: monospace;
}

.forex-ticker-item .change-up {
    color: var(--falcon-green);
    font-size: 12px;
}

.forex-ticker-item .change-down {
    color: var(--falcon-red);
    font-size: 12px;
}

/* Tables */
.falcon-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--falcon-text);
}

.falcon-table th {
    background: rgba(16, 30, 54, 0.8);
    color: var(--falcon-cyan);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(248, 192, 96, 0.2);
    font-weight: 600;
}

.falcon-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    vertical-align: middle;
}

.falcon-table tr:hover td {
    background: rgba(248, 192, 96, 0.04);
}

/* Form Controls */
.falcon-form-control {
    background: rgba(11, 21, 38, 0.9) !important;
    border: 1px solid rgba(248, 192, 96, 0.25) !important;
    color: #ffffff !important;
    border-radius: var(--falcon-radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.falcon-form-control:focus {
    border-color: var(--falcon-cyan) !important;
    box-shadow: 0 0 0 3px rgba(248, 192, 96, 0.2) !important;
    background: rgba(11, 21, 38, 1) !important;
}

.falcon-form-control::placeholder {
    color: #64748b !important;
}

.falcon-form-label {
    color: var(--falcon-text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Badges */
.badge-falcon-cyan {
    background: rgba(248, 192, 96, 0.15);
    color: var(--falcon-cyan);
    border: 1px solid rgba(248, 192, 96, 0.35);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-falcon-gold {
    background: rgba(229, 184, 105, 0.15);
    color: var(--falcon-gold);
    border: 1px solid rgba(229, 184, 105, 0.4);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-falcon-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--falcon-green);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Sidebar Styling for User & Admin */
.falcon-sidebar {
    background: #08111e;
    border-right: 1px solid rgba(248, 192, 96, 0.15);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.falcon-sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.falcon-sidebar-nav {
    padding: 20px 12px;
    flex-grow: 1;
    overflow-y: auto;
}

.falcon-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.falcon-nav-link:hover {
    color: var(--falcon-cyan);
    background: rgba(248, 192, 96, 0.08);
}

.falcon-nav-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(248, 192, 96, 0.2), rgba(248, 192, 96, 0.05));
    border-left: 3px solid var(--falcon-cyan);
    box-shadow: 0 0 15px rgba(248, 192, 96, 0.15);
}

.falcon-nav-link.gold.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(229, 184, 105, 0.2), rgba(229, 184, 105, 0.05));
    border-left: 3px solid var(--falcon-gold);
    box-shadow: 0 0 15px rgba(229, 184, 105, 0.15);
}

.falcon-nav-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #475569;
    padding: 16px 16px 6px;
    font-weight: 700;
}

.falcon-main-content {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.falcon-topbar {
    background: rgba(8, 17, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(248, 192, 96, 0.15);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}

@media (max-width: 991px) {
    .falcon-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .falcon-sidebar.open {
        transform: translateX(0);
    }
    .falcon-main-content {
        margin-left: 0;
    }
}

