/* ==========================================================================
   STYLE MASTER ELEGAN - ABSENKU (NAVY, GLASSMORPHISM, & POPPINS)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- GLOBAL STYLE VARIABEL & BASE --- */
body {
    background-color: #f8fafc !important;
    font-family: 'Poppins', sans-serif !important;
    color: #334155;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
}

/* Helper Warna & Efek */
.text-navy-main { color: #0f172a !important; }
.text-success-custom { color: #16a34a !important; }
.text-danger-custom { color: #dc2626 !important; }

/* ==========================================================================
   A. GLOBAL NAVBAR UTAMA
   ========================================================================== */
.nav-custom-clean {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02) !important;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo-brand {
    font-size: 20px;
    letter-spacing: -0.5px;
    color: #0f172a !important;
    font-family: 'Poppins', sans-serif !important;
}

.logo-brand span { color: #2563eb; }

.nav-links-custom .nav-link {
    color: #64748b !important;
    font-size: 14px;
    font-weight: 500;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.nav-links-custom .nav-link.active, 
.nav-links-custom .nav-link:hover {
    color: #0f172a !important;
}

/* ==========================================================================
   B. KOMPONEN UTAS: HALAMAN LOGIN (LUXURY HIGH-END)
   ========================================================================== */
.login-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(-45deg, #f8fafc, #eff6ff, #e0f2fe, #f1f5f9);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    overflow: hidden;
    padding: 20px;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ornamen Cahaya di Belakang Kartu Login */
.login-wrapper::before, .login-wrapper::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}
.login-wrapper::before {
    width: 300px;
    height: 300px;
    background: #2563eb;
    top: 10%;
    right: 15%;
}
.login-wrapper::after {
    width: 250px;
    height: 250px;
    background: #38bdf8;
    bottom: 10%;
    left: 15%;
}

/* Kartu Kaca Login (Glassmorphism) */
.login-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 45px 40px;
    width: 100%;
    max-width: 410px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 1;
}

.login-header { margin-bottom: 35px; }

.app-name {
    color: #0f172a;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -1px;
    margin-bottom: 6px;
}
.app-name span::after {
    content: ".";
    color: #38bdf8;
}

.app-subtitle { color: #64748b; font-size: 13.5px; }
.form-group-custom { margin-bottom: 22px; }

.form-label-custom {
    display: block;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

/* Input Form Login */
.form-input-custom {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #0f172a;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-input-custom:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08), 0 4px 12px rgba(37, 99, 235, 0.03) !important;
}

/* Checkbox & Link */
.form-check-custom { display: flex; align-items: center; margin-bottom: 26px; }
.form-checkbox-custom { width: 18px; height: 18px; border-radius: 6px; border: 1px solid #cbd5e1; margin-right: 10px; cursor: pointer; accent-color: #2563eb; }
.form-check-label-custom { color: #475569; font-size: 13px; user-select: none; cursor: pointer; font-weight: 500; }
.forgot-link { color: #2563eb; font-size: 12.5px; text-decoration: none; font-weight: 600; transition: all 0.2s; }
.forgot-link:hover { color: #1d4ed8; }

/* ⚡ TOMBOL LOGIN DENGAN ANIMASI NEON GLOW ⚡ */
.btn-login-submit {
    width: 100%;
    padding: 13px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.btn-login-submit:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15), 0 0 12px rgba(37, 99, 235, 0.1);
}
.btn-login-submit:active {
    background: #2563eb;
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 35px rgba(37, 99, 235, 0.3) !important;
}

/* ==========================================================================
   C. KOMPONEN UTAS: HALAMAN DASHBOARD / HOME
   ========================================================================== */
.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
}

/* Welcome Card Header Glassmorphism Soft */
.dashboard-header-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.02);
}

.sub-badge-navy {
    color: #2563eb;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
}

.welcome-text {
    color: #0f172a;
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.welcome-desc { color: #64748b; font-size: 13.5px; margin-bottom: 0; }

.date-badge {
    background-color: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

/* Desain Stat Card Interaktif */
.stat-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.stat-label { color: #64748b; font-size: 13px; font-weight: 500; display: block; margin-bottom: 4px; }
.stat-number { color: #0f172a; font-weight: 700; font-size: 26px; letter-spacing: -1px; margin-bottom: 0; }
.stat-total { font-size: 14px; font-weight: 400; color: #94a3b8; }

/* Icon Wrapper di Card Dashboard */
.stat-icon-wrapper {
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.icon-hadir { background-color: #f0fdf4; color: #16a34a; }
.icon-izin { background-color: #eff6ff; color: #2563eb; }
.icon-sakit { background-color: #fff7ed; color: #ea580c; }
.icon-alpa { background-color: #fef2f2; color: #dc2626; }

.stat-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1f5f9; font-size: 12.5px; }

/* Action Card & Akses Navigasi */
.action-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    height: 100%;
}
.section-title { color: #0f172a; font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.section-subtitle { color: #64748b; font-size: 13px; margin-bottom: 24px; }

/* Tombol Akses Cepat Dashboard */
.btn-quick-primary, .btn-quick-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
.btn-quick-primary { background-color: #0f172a; color: #ffffff !important; }
.btn-quick-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.btn-quick-secondary {
    background-color: #eff6ff;
    color: #2563eb !important;
    border: 1px solid rgba(37, 99, 235, 0.15);
}
.btn-quick-secondary:hover {
    background-color: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

/* Progress Bar Kustom */
.chart-section-title { color: #0f172a; font-weight: 700; font-size: 14px; margin-top: 32px; }
.progress-custom { height: 8px; background-color: #f1f5f9; border-radius: 50px; overflow: hidden; }
.progress-bar-custom { height: 100%; border-radius: 50px; }
.bg-navy-main { background-color: #0f172a; }
.bg-blue-glow { 
    background-color: #2563eb;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}
.active-progress { background-color: #e0f2fe; }

/* Timeline Aktivitas Terakhir */
.timeline-container { display: flex; flex-direction: column; gap: 20px; }
.timeline-item { display: flex; align-items: start; gap: 14px; }
.timeline-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }

.bg-light-blue { background-color: #eff6ff; }
.bg-light-green { background-color: #f0fdf4; }
.bg-light-orange { background-color: #fff7ed; }

.timeline-text { color: #1e293b; font-size: 13.5px; font-weight: 500; margin-bottom: 2px; }
.timeline-time { color: #94a3b8; font-size: 11px; display: block; }

/* ==========================================================================
   C. KOMPONEN UTAS: HALAMAN DAFTAR KEHADIRAN (DATATABLES PREMIUM)
   ========================================================================== */
.presence-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    font-family: 'Poppins', sans-serif !important;
}

.presence-title {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.btn-add-data {
    background-color: #0f172a !important; /* Tema Navy */
    color: #ffffff !important;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-add-data:hover {
    background-color: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Mengubah header tabel menjadi flat minimalis modern */
.custom-minimal-table thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 12px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

/* Mengatur baris data agar lebih berjarak dan clean */
.custom-minimal-table tbody td {
    padding: 16px 12px !important;
    color: #334155 !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Efek hover lembut pada baris tabel */
.custom-minimal-table tbody tr:hover {
    background-color: #f8fafc !important;
}

/* Merapikan kolom pencarian & kontrol bawaan DataTables */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    outline: none !important;
    font-size: 13.5px;
    transition: all 0.2s;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08) !important;
}

/* Kustomisasi Tombol Aksi di Dalam Tabel (Detail/Edit/Delete) */
.btn-table-action {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.bg-success-subtle {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}
.bg-warning-subtle {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}
/* ==========================================================================
   PRESENCE MANAGEMENT TABLE STYLES (style.css)
   ========================================================================== */

/* Mengubah header tabel menjadi flat minimalis */
.custom-minimal-table thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 12px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

/* Mengatur baris data agar lebih berjarak dan clean */
.custom-minimal-table tbody td {
    padding: 16px 12px !important;
    color: #334155 !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Efek hover lembut pada baris tabel */
.custom-minimal-table tbody tr:hover {
    background-color: #f8fafc !important;
}

/* Merapikan kolom pencarian bawaan datatables jika ada */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    outline: none !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1) !important;
}
/* Badge Status Kustom Dasbor */
.bg-success-subtle {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}

.bg-warning-subtle {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

.text-success-custom {
    color: #10b981 !important;
}