/* ==========================================================================
   TEMA "ELEGANT MARINE" v2.0 - Dibuat untuk Aplikasi Absensi Madrasah
   ========================================================================== */

/* Import Font dari Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;700&display=swap');

/* Variabel Warna Utama */
:root {
    --primary-color: #2c3e50; /* Biru Tua (Dipakai Guru) */
    --accent-color: #1abc9c;  /* Hijau Tosca (Aksen) */
    --accent-dark: #16a085;
    --secondary-accent: #f39c12;
    --light-bg: #f8f9fa;      /* Latar Belakang Abu-abu Muda */
    --text-dark: #34495e;
    --text-light: #7f8c8d;
    --border-color: #eaecf0;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    
    /* Warna Hijau Madrasah (untuk Login & Admin) */
    --green-dark: #005249;
    --green-light: #00796B;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}
/* CATATAN: Style 'body' global ini sekarang HANYA berlaku
  untuk layout dashboard admin dan guru (non-login).
*/
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden; /* Mencegah body untuk scroll */
}


/* =================================================== */
/* ===== 1. TEMA: GURU WORKSPACE (PANEL GURU) ===== */
/* =================================================== */

/* --- Variabel untuk Mode Gelap (Default) --- */
.guru-panel {
    --bg-main: #2d3748;      /* Latar abu-biru gelap */
    --bg-panel: #1a202c;     /* Panel lebih gelap */
    --text-primary: #ffffff; /* Teks Putih Bersih */
    --text-secondary: #a0aec0;/* Teks abu-abu */
    --border-color-guru: #4a5568;  /* Warna border */
    --accent-color-guru: #4299e1;  /* Biru cerah sebagai aksen */
    --hover-bg: #2d3748;
}
/* --- Variabel untuk Mode Terang --- */
.guru-panel.light-mode {
    --bg-main: #f0f2f5;
    --bg-panel: #ffffff;
    --text-primary: #000000;
    --text-secondary: #718096;
    --border-color-guru: #e2e8f0;
    --accent-color-guru: #3182ce;
    --hover-bg: #edf2f7;
}
/* Base Styles */
.guru-panel {
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: background-color 0.3s ease;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* Layout Utama */
.guru-workspace {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    flex-grow: 1;
    overflow: hidden;
    padding: 1.5rem;
}
.schedule-list, .guru-panel .main-content {
    background-color: var(--bg-panel);
    border-radius: 12px;
    overflow-y: auto;
    border: 1px solid var(--border-color-guru);
    transition: all 0.3s ease;
    padding: 1rem;
}
.guru-panel .main-content { padding: 2rem; }
/* Navbar */
.guru-panel .navbar-guru {
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border-color-guru);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.guru-panel .navbar-brand { color: var(--text-primary) !important; font-weight: 600; }
.guru-panel .btn-outline-primary { border-color: var(--border-color-guru); color: var(--text-secondary); }
.guru-panel .btn-outline-primary:hover { background-color: var(--hover-bg); color: var(--text-primary); }
/* Tombol Pengalih Tema */
.theme-toggle { cursor: pointer; color: var(--text-secondary); font-size: 1.25rem; transition: all 0.3s ease; }
.theme-toggle:hover { color: var(--accent-color-guru); }
/* Menu Jadwal */
.schedule-list h3 {
    font-size: 1.1rem; font-weight: 600; padding: 0.5rem 0.5rem 1rem 0.5rem;
    border-bottom: 1px solid var(--border-color-guru); margin-bottom: 1rem; color: var(--text-primary);
}
.guru-panel .schedule-accordion .accordion-item { background-color: transparent; border: none; border-bottom: 1px solid var(--border-color-guru); }
.guru-panel .schedule-accordion .accordion-button { background-color: transparent; color: var(--text-primary); font-weight: 600; font-size: 1.1rem; padding: 1rem 1.25rem; box-shadow: none; }
.guru-panel .schedule-accordion .accordion-button:not(.collapsed) { background-color: var(--hover-bg); color: var(--accent-color-guru); }
.guru-panel .schedule-accordion .accordion-body { padding: 0; }
.schedule-link {
    display: block; padding: 0.8rem 1rem 0.8rem 2.5rem; text-decoration: none;
    color: var(--text-secondary); transition: all 0.2s ease;
}
.schedule-link:hover { background-color: var(--hover-bg); color: var(--text-primary); }
.schedule-link.active { background-color: var(--accent-color-guru); color: #fff; font-weight: 500; box-shadow: 0 4px 10px rgba(49, 130, 206, 0.3); }
.schedule-link .subject-name { display: block; font-size: 0.9rem; }
/* Konten di Kanan */
.guru-panel .main-content .nav-tabs { border-bottom-color: var(--border-color-guru); }
.guru-panel .main-content .nav-tabs .nav-link { color: var(--text-secondary); border-color: transparent !important; background: none; }
.guru-panel .main-content .nav-tabs .nav-link.active { color: var(--accent-color-guru); background-color: transparent; border-bottom: 3px solid var(--accent-color-guru) !important; }
.guru-panel .main-content .tab-content { padding-top: 1.5rem; }
.guru-panel .main-content .card { background-color: var(--bg-main); border: 1px solid var(--border-color-guru); color: var(--text-primary); }
.guru-panel .main-content .card-header, .guru-panel .main-content .card-footer { background-color: transparent; border-color: var(--border-color-guru) !important; color: inherit; }
.guru-panel .main-content .list-group-item { background-color: transparent; border-color: var(--border-color-guru); color: var(--text-primary); }
.guru-panel .main-content .text-muted, .guru-panel .main-content .welcome-subtitle { color: var(--text-secondary) !important; }
.guru-panel .main-content .form-control, .guru-panel .main-content .form-select {
    background-color: var(--bg-main); border-color: var(--border-color-guru); color: var(--text-primary);
}
.guru-panel .main-content .form-control:focus, .guru-panel .main-content .form-select:focus {
    background-color: var(--bg-main); color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(49,130,206,.25); border-color: var(--accent-color-guru);
}
.guru-panel.dark-mode .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a0aec0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.guru-panel .main-content .table {
    --bs-table-color: var(--text-primary);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color-guru);
    --bs-table-striped-bg: var(--hover-bg);
    --bs-table-hover-bg: var(--hover-bg);
}
.guru-panel .main-content .table thead th {
    background-color: var(--bg-main);
}
.guru-panel .quote-of-the-day {
    background-color: var(--hover-bg);
    border-left: 4px solid var(--accent-color-guru);
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0 8px 8px 0;
}
.guru-panel .quote-of-the-day p {
    margin: 0;
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* Responsif khusus panel guru agar tetap rapi di handphone */
@media (max-width: 991.98px) {
    .guru-panel {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }
    .guru-workspace {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        overflow: visible;
    }
    .schedule-list,
    .guru-panel .main-content {
        max-height: none;
        overflow: visible;
    }
    .guru-panel .main-content {
        padding: 1rem;
    }
    .guru-panel .navbar-guru .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        gap: 0.5rem;
    }
    .guru-panel .navbar-brand {
        font-size: 0.95rem;
        max-width: calc(100% - 4rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .guru-panel .btn-outline-primary {
        padding: 0.375rem 0.625rem;
        font-size: 0.85rem;
    }
    .guru-panel .main-content .table-responsive {
        border: 1px solid var(--border-color-guru);
        border-radius: 10px;
    }
}

@media (max-width: 575.98px) {
    .guru-panel .navbar-brand img {
        height: 30px !important;
    }
    .guru-panel .navbar-brand {
        font-size: 0.85rem;
    }
    .theme-toggle {
        font-size: 1.05rem;
    }
    .schedule-list h3 {
        font-size: 1rem;
    }
    .guru-panel .schedule-accordion .accordion-button {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }
    .schedule-link {
        padding: 0.75rem 0.85rem 0.75rem 1.25rem;
    }
    #reader {
        max-width: 100% !important;
    }
}


/* =================================================== */
/* ===== 2. TEMA: ADMIN PANEL (FRESH & ELEGANT) ===== */
/* =================================================== */

/* --- 2.1 Override Body Global --- */
/* Meng-override style 'body' global agar tidak bentrok */
.admin-panel {
    display: block; /* Hapus display: flex */
    flex-direction: unset;
    height: auto;
    overflow: visible; /* Kembalikan scroll normal */
    background-color: var(--light-bg); /* Latar belakang abu-abu */
}

/* --- 2.2 Layout Utama --- */
.admin-panel-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- 2.3 Sidebar (Gradien Hijau) --- */
.admin-panel .sidebar {
    width: 280px;
    flex-shrink: 0;
    /* Latar belakang gradien dari login */
    background: linear-gradient(160deg, var(--green-dark), var(--green-light));
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-right: none;
    overflow-y: auto;
    padding: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 1045; /* Di atas konten, di bawah backdrop */
    
    /* Hapus style lama .sidebar */
    box-shadow: 2px 0 15px var(--shadow-medium);
}
.admin-panel .sidebar-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.admin-panel .sidebar-logo {
    width: 70px;
    height: auto;
    margin-bottom: 1rem;
}
.admin-panel .sidebar-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}
.admin-panel .sidebar-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 300;
}
.admin-panel .sidebar-nav {
    padding-top: 1rem;
}
.admin-panel .sidebar .nav-link {
    /* Override style .sidebar .nav-link lama */
    color: rgba(255, 255, 255, 0.8);
    padding: 0.7rem 1.25rem;  /* <-- DIUBAH (lebih rapat) */
    margin-bottom: 0.25rem; /* <-- DIUBAH (lebih rapat) */
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    transform: none; /* Hapus transform scale lama */
}
.admin-panel .sidebar .nav-link i {
    margin-right: 1rem;
    font-size: 1.1rem;
    opacity: 0.8;
}
.admin-panel .sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: none; /* Hapus shadow lama */
}
.admin-panel .sidebar .nav-link.active {
    background: #ffffff; /* Ganti dari gradien tosca */
    color: var(--green-light); /* Warna gradien hijau */
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: none; /* Hapus transform scale lama */
}
.admin-panel .sidebar .nav-link.active i {
    opacity: 1;
}

/* --- 2.4 Area Konten --- */
.admin-panel .content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem 2.5rem;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
}

.admin-panel .navbar-floating {
    /* Efek "Frosted Glass" DIHAPUS */
    
    /* Tata letak tetap dipertahankan */
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem; /* Jarak ke konten di bawah */
    flex-shrink: 0;
    /* position: sticky;  <-- DIHAPUS */
    /* top: 1.5rem;       <-- DIHAPUS */
    z-index: 1020;
}
.admin-panel .navbar-page-title {
    font-weight: 700;
    color: var(--text-dark);
}
.admin-panel .dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 var(--shadow-light);
}

/* --- 2.6 Body Konten (Area di bawah Navbar) --- */
.admin-panel .content-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.admin-panel .footer-custom {
    /* Override footer lama */
    background: transparent;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    box-shadow: none;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* --- 2.7 Mendesain Ulang Kartu (Frosted Glass) --- */
.admin-panel .card {
    /* Override .card global */
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 var(--shadow-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.admin-panel .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}
.admin-panel .card-header {
    /* Override .card-header global */
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    padding: 1.25rem;
}

/* Mendesain ulang kartu statistik .dashboard-card */
.admin-panel .dashboard-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left-width: 4px; /* Tetap pakai border kiri */
    transition: all 0.3s ease;
    padding: 0; /* Hapus padding lama */
}
.admin-panel .dashboard-card .card-body {
    padding: 1.5rem; /* Padding baru yang lebih pas */
}
.admin-panel .dashboard-card:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}
.admin-panel .dashboard-card .col-auto i {
    font-size: 2.5rem; /* Kecilkan ikon agar lebih elegan */
    opacity: 0.3;
}
.admin-panel .dashboard-card .h5 {
    font-size: 2rem; /* Kecilkan angka */
}

/* --- 2.8 Responsif (Mobile) --- */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991.98px) {
    .admin-panel .sidebar {
        position: fixed;
        left: -280px; /* Sembunyi di kiri */
        height: 100%;
        transition: all 0.3s ease;
    }
    .admin-panel .sidebar.show {
        left: 0; /* Munculkan saat .show */
    }
    .admin-panel .content-area {
        padding: 1rem;
    }
    .admin-panel .navbar-floating {
        top: 1rem;
    }
    .admin-panel .navbar-page-title {
        /* Judul halaman di tengah saat mobile */
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.1rem;
    }
}


/* =================================================== */
/* ===== 3. FINAL: CSS HALAMAN LOGIN SPLIT-SCREEN ===== */
/* =================================================== */

/* --- 3.1 Global --- */
.body-login-split {
    /* PERBAIKAN BENTROK: Override style 'body' global */
    display: block;
    flex-direction: unset;
    height: auto;
    overflow: hidden; /* Mencegah scrolling pada halaman login */
    font-family: 'Inter', sans-serif; 
}

/* --- 3.2 Sisi Kiri (Branding 3D) --- */
.login-branding-side {
    background: 
      linear-gradient(135deg, rgba(0, 82, 73, 0.85), rgba(0, 121, 107, 0.85)),
      url('../img/bg_login.jpg'); /* <-- PASTIKAN NAMA GAMBAR INI BENAR */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    display: flex; 
    align-items: center;
    justify-content: center;
    flex-direction: column; 
    padding: 3rem;
    height: 100vh;
    perspective: 1500px; /* "Kamera" 3D */
}
/* Wrapper konten 3D kiri */
.login-branding-side [data-tilt-target] {
  transform-style: preserve-3d;
  transition: transform 0.4s ease-out;
}
.login-branding-side img { transform: translateZ(60px); }
.login-branding-side h1 { transform: translateZ(40px); }
.login-branding-side h3 { transform: translateZ(20px); }

/* --- 3.3 Sisi Kanan (Formulir "Frosted") --- */
.login-form-side {
    background-color: var(--light-bg); /* Latar belakang abu-abu */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem; 
    overflow-y: auto; 
    perspective: 1500px; /* "Kamera" 3D */
}

/* Kartu Formulir "Frosted Glass" */
.login-form-wrapper {
  animation: fadeIn 0.6s ease-in-out;
  /* Efek "Frosted Glass" */
  background-color: rgba(255, 255, 255, 0.85); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2); 
  
  padding: 3rem; 
  border-radius: 12px; 
  width: 100%;
  max-width: 450px; 

  /* Efek 3D & Bayangan */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); 
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
  transform-style: preserve-3d;
}
.login-form-wrapper:hover {
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.12);
}

/* --- 3.4 Elemen Form --- */
.form-control-elegant {
  border: 1px solid #e0e0e0; 
  border-left: none; 
  border-radius: 0 0.5rem 0.5rem 0; 
  background-color: #f8f9fa; 
  padding: 0.75rem 1.25rem; 
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: calc(3.5rem + 2px); 
  font-size: 1rem;
}
.form-control-elegant:focus {
  background-color: #ffffff;
  border-color: var(--green-light); 
  box-shadow: 0 0 0 0.25rem rgba(0, 121, 107, 0.2); 
  z-index: 2;
  position: relative;
}
.input-group-text-icon {
  background-color: #f8f9fa; 
  border: 1px solid #e0e0e0;
  border-right: none; 
  border-radius: 0.5rem 0 0 0.5rem; 
  color: #6c757d; 
  padding: 0 1rem;
  font-size: 1.2rem;
}
.form-control-elegant:focus + .input-group-text-icon {
    background-color: #ffffff;
    border-color: var(--green-light);
    color: var(--green-light); 
    z-index: 2;
}
.btn-gradient-green {
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50rem; /* Bentuk pil */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 82, 73, 0.3); 
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gradient-green:hover {
  color: white;
  transform: translateY(-3px); 
  box-shadow: 0 6px 20px rgba(0, 82, 73, 0.4);
}
.btn-gradient-green:active {
  transform: translateY(1px); /* Efek "ditekan" */
  box-shadow: 0 2px 8px rgba(0, 82, 73, 0.25);
}

/* --- 3.5 Animasi & Mobile --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767.98px) {
  .login-form-side {
     height: 100vh; 
     align-items: flex-start; 
     padding: 2rem 1.5rem;
  }
  .login-form-wrapper {
    padding: 2.5rem;
  }
}
/* ===== AKHIR DARI SEMUA STYLE ===== */

/* =========================================
   GURU PANEL MOBILE REDESIGN 2026
========================================= */
@media (max-width: 991.98px) {

    .guru-workspace {
        display: flex !important;
        flex-direction: column !important;
        padding: .75rem !important;
        gap: .75rem !important;
    }

    .schedule-list {
        order: 1;
        padding: 1rem !important;
        border-radius: 18px !important;
    }

    .main-content {
        order: 2;
        padding: 1rem !important;
        border-radius: 18px !important;
    }

    /* Header lebih compact */
    .navbar-guru {
        padding: .65rem .85rem !important;
        position: sticky;
        top: 0;
        z-index: 999;
        backdrop-filter: blur(14px);
    }

    .navbar-brand {
        font-size: .9rem !important;
        font-weight: 700 !important;
    }

    .navbar-brand img {
        height: 28px !important;
    }

    /* Menu utama jadi chip */
    .schedule-link {
        padding: .85rem 1rem !important;
        border-radius: 14px !important;
        margin-bottom: .4rem;
        font-size: .95rem;
    }

    /* Accordion jadwal lebih modern */
    .accordion-button {
        border-radius: 14px !important;
        font-size: 1rem !important;
        padding: 1rem !important;
    }

    .accordion-item {
        border: none !important;
        margin-bottom: .75rem;
        border-radius: 14px !important;
        overflow: hidden;
    }

    /* Card / Content */
    .guru-panel .card {
        border-radius: 18px !important;
        padding: .25rem;
    }

    /* Tabs scrollable mobile */
    .guru-panel .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .guru-panel .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .guru-panel .nav-tabs .nav-link {
        flex: 0 0 auto;
        padding: .85rem 1rem;
        font-size: .92rem;
    }

    /* Table responsive jadi card-like */
    .table-responsive {
        border-radius: 14px;
        overflow: auto;
    }

    .table td,
    .table th {
        white-space: nowrap;
        vertical-align: middle;
        padding: .85rem .7rem;
    }

    /* Tombol mobile friendly */
    .btn {
        border-radius: 12px !important;
        min-height: 44px;
        font-weight: 600;
    }

}

/* Compact Mobile Sidebar/Panel */
@media (max-width: 991.98px) {

    .schedule-list h3 {
        font-size: .95rem;
        margin-bottom: .75rem;
        padding-bottom: .5rem;
    }

    .schedule-list {
        max-height: 280px;
        overflow-y: auto;
    }

    .welcome-message {
        padding: 1rem !important;
        min-height: auto !important;
    }

    .welcome-message i {
        font-size: 3rem !important;
        margin-bottom: .75rem;
    }

    .welcome-message h2 {
        font-size: 1.4rem;
        line-height: 1.35;
    }

    .welcome-subtitle {
        font-size: .95rem;
        margin-top: .25rem;
    }

}
@media (max-width: 991.98px){
    .mobile-collapsible{
        max-height: 220px;
        overflow-y:auto;
    }
}

/* =========================================
   MOBILE CARD TABLE FOR ABSENSI SISWA
========================================= */
@media (max-width: 991.98px) {

    .mobile-card-table thead {
        display: none;
    }

    .mobile-card-table,
    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table td {
        display: block;
        width: 100%;
    }

    .mobile-card-table tr {
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 18px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }

    .mobile-card-table td {
        border: none !important;
        padding: .45rem 0 !important;
        text-align: left !important;
    }

    .mobile-card-table td::before {
        content: attr(data-label);
        display: block;
        font-size: .78rem;
        font-weight: 600;
        opacity: .65;
        margin-bottom: .35rem;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .mobile-card-table .btn-group {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(4,1fr);
        gap: .45rem;
    }

    .mobile-card-table .btn-group .btn {
        border-radius: 12px !important;
        min-height: 42px;
        font-weight: 700;
    }

    .mobile-card-table .status-badge {
        width: auto !important;
        min-width: 120px;
        padding: .55rem .9rem;
        font-size: .85rem;
    }

    .mobile-card-table .btn-catatan {
        width: 100%;
        min-height: 42px;
    }

    .mobile-card-table .btn-tambah-poin {
        min-width: 42px;
        min-height: 42px;
        border-radius: 12px;
    }

}

.mobile-card-table tr:hover{
    transform: translateY(-2px);
    transition:.2s ease;
}