/* --- GOOGLE FONTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* --- WARNA BRAND SURYA MADINA --- */
    --brand-blue-dark: #0d47a1;
    --brand-blue-light: #42a5f5;
    --brand-gold: #c5a059;
    --brand-orange: #ff6f00;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.85); /* Lebih solid dikit biar tulisan jelas */
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(13, 71, 161, 0.1); /* Bayangan biru tipis */
    
    /* Gradient Mewah */
    --gradient-surya: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue-light) 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
    --gradient-royal: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    --gradient-fresh: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    
    --text-dark: #1e272e;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f6fa;
    /* Background abstrak elegan (Biru pudar) */
    background-image: 
        radial-gradient(at 0% 0%, rgba(13, 71, 161, 0.05) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(197, 160, 89, 0.1) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-dark);
    padding-bottom: 80px;
}

/* --- HEADER ROYAL (Biru ke Emas) --- */
.main-header {
    background: linear-gradient(120deg, #0b2e59, #0d47a1, #1565c0);
    position: relative;
    padding: 30px 0 70px 0;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 40px rgba(13, 71, 161, 0.3);
    color: white;
    z-index: 1;
    overflow: hidden;
}

/* Efek Kilau Emas di Header */
.main-header::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 200%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.3) 0%, transparent 60%);
    transform: rotate(30deg);
}

/* --- 3D STAT CARDS (Brand Colors) --- */
.stat-card {
    border: none;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    min-height: 120px;
    z-index: 10;
}

/* Warna Kartu Sesuai Brand */
.card-flight { background: var(--gradient-surya); } /* Biru Surya */
.card-perkap { background: linear-gradient(135deg, #ff8f00 0%, #ff6f00 100%); } /* Oranye Brand */
.card-petugas { background: var(--gradient-fresh); } /* Hijau Islami */
.card-logs { background: #34495e; } /* Abu Elegan */

.stat-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.stat-card .content-text { position: relative; z-index: 2; padding-left: 10px; }

/* Icon Blend Besar (Watermark) */
.stat-card i.bg-icon {
    position: absolute;
    right: -15px;
    bottom: -25px;
    font-size: 5.5rem;
    opacity: 0.2; /* Lebih transparan agar elegan */
    transform: rotate(-15deg);
    transition: all 0.5s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}
.stat-card:hover i.bg-icon { transform: rotate(0deg) scale(1.1); right: 10px; opacity: 0.3; }

/* --- GLASSMORPHISM PANEL --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.9); /* Putih bersih */
    border: 1px solid rgba(255,255,255,1);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.1); /* Shadow Biru */
    border-radius: 25px;
    margin-top: -50px;
    backdrop-filter: blur(20px);
}

/* --- TABLE MODERN (Emas & Biru) --- */
.table-modern { border-collapse: separate; border-spacing: 0 10px; }
.table-modern thead th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #0d47a1; /* Judul Kolom Biru Brand */
    font-weight: 700;
    padding-bottom: 10px;
    border: none;
}
.table-modern tbody tr {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}
.table-modern tbody tr:hover { transform: scale(1.005); box-shadow: 0 10px 25px rgba(13, 71, 161, 0.1); }
.table-modern td { border: none; padding: 20px 15px; vertical-align: middle; }
.table-modern tbody tr td:first-child { border-radius: 15px 0 0 15px; border-left: 5px solid transparent; transition: 0.3s; }
.table-modern tbody tr td:last-child { border-radius: 0 15px 15px 0; }

/* Aksen Warna di Samping Kiri Tabel saat Hover */
.table-modern tbody tr:hover td:first-child { border-left: 5px solid var(--brand-gold); }

/* --- BADGES & PROGRESS --- */
.badge-timer { background: #fff; border: 1px solid #ddd; color: #555; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* Progress Bar Loreng Emas & Biru */
.progress-bar.bg-primary { background: var(--gradient-surya); }
.progress-bar.bg-warning { background: var(--gradient-gold); color: #5c4006; }
.progress-bar.bg-info { background: #00cec9; }

/* Icon Glossy Brand */
.icon-madinah { color: #27ae60; filter: drop-shadow(0 0 5px rgba(39, 174, 96, 0.4)); font-size: 1.2rem; }
.icon-makkah { color: #1e272e; filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.8)); font-size: 1.2rem; } /* Glow Emas */

/* Responsive */
@media screen and (max-width: 768px) {
    .table-modern thead { display: none; }
    .table-modern tbody tr { display: block; margin-bottom: 20px; }
    .table-modern tbody tr td { display: flex; justify-content: space-between; text-align: right; border-bottom: 1px dashed #eee; }
    .table-modern tbody tr td::before { content: attr(data-label); font-weight: 700; color: #0d47a1; }
    .table-modern tbody tr td:first-child { border-left: none; border-top: 5px solid var(--brand-blue-dark); }
}

/* --- FITUR STICKY COLUMN (Agar Nama Paket Diam saat Scroll) --- */
.sticky-col {
    position: -webkit-sticky; /* Support Safari */
    position: sticky;
    left: 0;
    z-index: 10; /* Pastikan dia melayang di atas kolom lain */
    background-color: #fff !important; /* WAJIB: Agar tulisan di belakangnya tidak tembus */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); /* Bayangan halus pemisah */
    border-right: 1px solid #dee2e6;
}

/* Khusus Header (Judul Kolom) warnanya harus beda */
.table thead th.sticky-col {
    background-color: #f8f9fa !important; /* Sesuaikan dengan warna header tabel Anda */
    z-index: 11; /* Header harus lebih tinggi dari isi tabel */
}

/* Jika ada kolom kedua yang mau di-freeze (misal: No urut) */
.sticky-col-1 {
    left: 0;
    width: 50px; /* Atur lebar sesuai kebutuhan */
    z-index: 10;
}

.sticky-col-2 {
    left: 50px; /* Geser sejauh lebar kolom pertama */
    z-index: 10;
}

/* --- TAMBAHAN UNTUK HALAMAN EDIT (WIZARD STEP) --- */
.step-wizard {
    display: flex;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 100px;
    text-decoration: none;
    color: #adb5bd;
    font-weight: 600;
    font-size: 0.85rem;
    padding-bottom: 5px;
    border-bottom: 3px solid #f1f1f1;
    transition: all 0.3s;
}

.step-item:hover { color: var(--brand-blue-light); }

.step-item.active {
    color: var(--brand-blue-dark);
    border-bottom-color: var(--brand-gold);
}

.step-icon {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* --- STICKY BOTTOM ACTION BAR (Tombol Simpan Melayang) --- */
.sticky-bottom-action {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 999;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid #eee;
    animation: slideUp 0.3s ease-out;
}

/* Agar konten tidak tertutup tombol melayang */
.body-content-wrapper {
    padding-bottom: 80px; 
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (max-width: 768px) {
    .step-item { font-size: 0.7rem; }
    .step-icon { font-size: 1rem; }
    .sticky-bottom-action { justify-content: space-between; }
}