/* ============================================
VARIABLES DAN RESET CSS
============================================ */

:root {
    /* Warna utama untuk tema aplikasi */
    --primary-color: #0c58e6;           /* Warna biru ungu primer */
    --primary-dark: #041a94;            /* Warna primer lebih gelap untuk hover */
    --primary-light: #73a1e6;           /* Warna primer lebih terang */
    --secondary-color: #0a0ee9;         /* Warna sekunder (ungu) */
    --success-color: #28a745;           /* Warna sukses (hijau) */
    --warning-color: #ffc107;           /* Warna peringatan (kuning) */
    --danger-color: #dc3545;            /* Warna bahaya (merah) */
    --info-color: #17a2b8;              /* Warna info (biru muda) */
    --light-color: #f8f9fa;             /* Warna latar terang */
    --dark-color: #343a40;              /* Warna teks gelap */
    --gray-color: #6c757d;              /* Warna abu-abu untuk teks sekunder */
    --border-color: #dee2e6;            /* Warna border default */
    
    /* Gradien untuk background dan button */
    --gradient-primary: linear-gradient(135deg, #16a8d4 0%, #0c58e6 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    
    /* Sistem bayangan (shadow) untuk depth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);     /* Shadow kecil */
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);      /* Shadow medium */
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);   /* Shadow besar */
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);    /* Shadow extra besar */
    
    /* Border radius untuk konsistensi sudut melengkung */
    --radius-sm: 0.375rem;    /* Radius kecil */
    --radius-md: 0.5rem;      /* Radius medium */
    --radius-lg: 0.75rem;     /* Radius besar */
    --radius-xl: 1rem;        /* Radius extra besar */
    
    /* Transisi untuk animasi halus */
    --transition: all 0.3s ease;
}

/* Reset semua elemen untuk konsistensi lintas browser */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Membuat padding dan border termasuk dalam width/height */
}

/* Styling dasar body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    min-height: 100vh;           /* Minimal tinggi viewport */
    display: flex;
    flex-direction: column;      /* Layout kolom untuk footer di bawah */
}

/* Smooth scrolling untuk navigasi anchor */
html {
    scroll-behavior: smooth;
}

/* ============================================
TYPOGRAPHY (Tipografi)
============================================
- Styling untuk semua heading dan teks
- Menggunakan sistem hierarki yang konsisten
============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);  
}

/* Ukuran font untuk heading lainnya */
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Paragraf dasar */
p {
    margin-bottom: 1rem;
}

/* Link styling */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* - Kelas yang dapat digunakan kembali - Untuk warna, background, text alignment, dll*/

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Utility untuk warna teks */
.text-primary { color: var(--primary-color) !important; }
.text-muted { color: var(--gray-color) !important; }

/* Teks dengan gradient background */
.text-primary-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utility untuk background dengan gradient */
.bg-primary { background: var(--gradient-primary) !important; border: none !important; }
.bg-success { background: var(--gradient-success) !important; border: none !important; }
.bg-warning { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%) !important; border: none !important; }
.bg-danger { background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%) !important; border: none !important; }
.bg-info { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; border: none !important; }

/* Required field indicator */
.required::after {
    content: ' *';
    color: var(--danger-color);
}

/* Display class untuk teks besar */
.display-1 {
    font-size: 4rem;
}

/* ============================================
NAVBAR 
============================================
- Navigasi utama aplikasi
- Menggunakan gradient background
- Responsif untuk mobile
============================================ */

.navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    background: var(--gradient-primary) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.75rem;
}

/* Link navigasi biasa */
.navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.9) !important;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* LOGIN LINK IN NAVBAR - styling khusus untuk tombol login */
.navbar-nav .nav-link-login {
    color: #000000 !important;
    background: rgba(5, 5, 5, 0.95) !important;
    font-weight: 700;
    padding: 0.6rem 1.5rem !important;
    margin-left: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link-login:hover {
    color: #0a0a0a !important;
    background: rgb(255, 255, 255) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.navbar-nav .nav-link-login i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* ============================================
HERO SECTION (Bagian Utama)
============================================
- Banner utama di halaman depan
- Menggunakan gradient dan SVG background
- Call-to-action yang menarik
============================================ */

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0 60px;
    margin-bottom: 40px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* SVG background wave untuk efek dekoratif */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-section h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 1.8rem;
}

/* Tombol CTA di hero section */
.hero-section .btn {
    background: white;
    color: var(--primary-color);
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
SIDEBAR (Menu Samping)
============================================
- Navigasi sidebar untuk dashboard
- Menu aktif dengan highlight
- Responsif (disembunyikan di mobile)
============================================ */

.sidebar {
    background: white;
    min-height: calc(100vh - 56px); /* Sesuaikan tinggi dengan navbar */
    box-shadow: var(--shadow-md);
    border-right: 1px solid var(--border-color);
}

.sidebar h5 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Link sidebar */
.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: var(--transition);
}

.sidebar .nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(5px); /* Efek geser ke kanan */
}

/* Link aktif di sidebar */
.sidebar .nav-link.active {
    background: var(--gradient-primary);
    color: white !important;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid white; /* Indikator aktif */
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* ============================================
CARDS (Kartu/Kotak)
============================================
- Komponen card untuk konten
- Stat card untuk menampilkan angka
- Card kegiatan untuk listing
============================================ */

/* Card dasar - TANPA BORDER */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px); /* Efek angkat saat hover */
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: white;
    border-bottom: 2px solid var(--primary-light);
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Stat Cards - untuk menampilkan statistik - TANPA GARIS */
.stat-card {
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none !important; /* TANPA BORDER */
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: white;
}

.stat-card .card-title {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

.stat-card .card-text {
    color: white;
    opacity: 0.8;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Card Kegiatan - khusus untuk listing kegiatan */
.card-kegiatan {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    background: white;
    border: 1px solid #e0e0e0;
}

.card-kegiatan:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.kegiatan-foto {
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
    transition: transform 0.3s;
    width: 100%;
}

.card-kegiatan:hover .kegiatan-foto {
    transform: scale(1.02); /* Efek zoom halus pada foto */
}

/* Admin Card - khusus untuk data admin */
.admin-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
}

.admin-count {
    color: white;
    font-size: 2.2rem;
}

/* ============================================
BUTTONS (Tombol)
============================================
- Sistem tombol yang konsisten
- Variasi warna untuk konteks berbeda
- Group button untuk aksi
============================================ */

/* Button dasar */
.btn {
    border-radius: var(--radius-md);
    padding: 0.45rem 1.3rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

/* Button primer dengan gradient */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Button warna lainnya */
.btn-success { background: var(--gradient-success); border: none; }
.btn-warning { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); border: none; }
.btn-danger { background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%); border: none; }

/* Button outline */
.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Button light untuk kontras dengan dark background */
.btn-light {
    background: white;
    border: 2px solid white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-light:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Group button untuk aksi dalam tabel */
.btn-action-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    min-width: 65px;
}

/* Button spesifik untuk view detail */
.btn-view-detail {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-view-detail:hover {
    background: linear-gradient(135deg, #2c8be8 0%, #00c9d4 100%);
    color: white;
}

/* Button aksi spesifik untuk CRUD operations */
.btn-detail {
    background-color: #17a2b8;
    color: white;
    border: 1px solid #17a2b8;
}

.btn-detail:hover {
    background-color: #138496;
    border-color: #117a8b;
    color: white;
}

.btn-edit {
    background-color: #0d6efd;
    color: white;
    border: 1px solid #0d6efd;
}

.btn-edit:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: white;
}

.btn-hapus {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-hapus:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

/* Container untuk button aksi */
.action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Group button untuk download/print */
.btn-download-group {
    display: flex;
    gap: 0.4rem;
}

.btn-print {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-print:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
    transform: translateY(-2px);
}

.btn-refresh {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
}

.btn-refresh:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
TABLES (Tabel)
============================================
- Styling tabel data
- Header dengan gradient
- Row hover effect
============================================ */

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

/* Header tabel */
.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Row tabel dengan efek hover */
.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05); /* Background biru sangat transparan */
}

.table tbody td {
    padding: 0.9rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
BADGES (Label)
============================================
- Untuk status, kategori, tag
- Warna berbeda untuk konteks berbeda
============================================ */

/* Badge dasar */
.badge {
    padding: 0.3em 0.6em;
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

/* Badge untuk status */
.badge-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Badges dengan gradient */
.status-pending {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #7b341e;
}

.status-approved {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #22543d;
}

.status-rejected {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #742a2a;
}

/* Color Badges tanpa gradient */
.badge-approved { 
    background-color: #28a745 !important; 
    color: white !important;
}

.badge-pending { 
    background-color: #ffc107 !important; 
    color: #000 !important;
}

.badge-rejected { 
    background-color: #dc3545 !important; 
    color: white !important;
}

/* Badge untuk hari dan jam */
.hari-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.jam-badge {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.badge-hari {
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 4px;
}

.badge-custom {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
}

.bg-pink {
    background-color: #e83e8c !important;
}

/* ============================================
FORM ELEMENTS (Elemen Form)
============================================
- Input, select, textarea
- Filter section untuk pencarian
============================================ */

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.9rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25); /* Glow effect */
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* Filter Section - untuk form pencarian/filter */
.filter-section {
    background: white;
    padding: 1.3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.3rem;
}

.filter-form .form-control, 
.filter-form .form-select {
    height: 36px; /* Tinggi konsisten untuk form filter */
}

/* ============================================
MODALS (Popup/Dialog)
============================================
- Modal untuk form, detail, konfirmasi
- Fullscreen photo viewer
============================================ */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.3rem;
}

.modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-body {
    padding: 1.8rem;
}

.modal-footer {
    padding: 1.3rem;
    border-top: 1px solid var(--border-color);
}

/* Close button di modal header */
.modal-header .btn-close {
    filter: brightness(0) invert(1); /* Membuat icon close putih */
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Modal size custom */
.modal-lg-custom {
    max-width: 800px;
}

/* Fullscreen Photo Modal - untuk melihat foto fullscreen */
.fullscreen-foto {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fullscreen-foto img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    color: #333;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.fullscreen-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.fullscreen-caption {
    color: white;
    margin-top: 15px;
    text-align: center;
    max-width: 80%;
    font-size: 0.95rem;
}

/* ============================================
IMAGES dan AVATARS - DIPERKECIL
============================================
- Semua gambar dengan ukuran konsisten
- Avatar untuk user/profile
- Thumbnail untuk preview
============================================ */

/* Avatar untuk guru/user */
.avatar-guru {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Thumbnail foto untuk tabel */
.foto-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.foto-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.08); /* Efek zoom kecil */
}

/* Foto kegiatan spesifik */
.foto-kegiatan {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
}

.foto-kegiatan:hover {
    transform: scale(1.08);
    border-color: #0d6efd;
    box-shadow: 0 0 12px rgba(13, 110, 253, 0.3);
}

/* Thumbnail umum */
.img-thumbnail {
    transition: transform 0.2s;
    cursor: pointer;
    border-radius: 6px;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.img-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* Placeholder ketika tidak ada foto */
.no-foto {
    width: 50px;
    height: 50px;
    background: var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    cursor: default;
    font-size: 0.8rem;
}

/* Gambar dalam modal */
.modal-img {
    max-height: 250px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.modal-img:hover {
    transform: scale(1.02);
}

/* Preview gambar sebelum upload */
.preview-img {
    max-width: 180px;
    max-height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.foto-preview {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

/* Badge untuk jumlah foto */
.foto-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.foto-container {
    position: relative;
    display: inline-block;
}

/* Avatar untuk profile */
.profile-avatar {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
    margin: 0 auto;
    border: 3px solid white;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

/* ============================================
ALERTS dan NOTIFICATIONS (Peringatan)
============================================
- Alert untuk feedback user
- Warna berbeda untuk tipe berbeda
============================================ */

.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 0.9rem 1.3rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
}

.alert-dismissible .btn-close {
    padding: 0.6rem 1rem;
}

/* Alert dengan gradient background */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid var(--success-color);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid var(--danger-color);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid var(--warning-color);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid var(--info-color);
    color: #0c5460;
}

/* Alert Variations */
.alert-primary {
    background: linear-gradient(135deg, #cfe2ff 0%, #9ec5fe 100%);
    border-left: 4px solid #0d6efd;
}

.alert-secondary {
    background: linear-gradient(135deg, #6c757d20 0%, #49505720 100%);
    border-left: 4px solid #6c757d;
    color: #333;
}

/* ============================================
PROGRESS BARS (Progress Bar)
============================================
- Untuk menunjukkan progress
============================================ */

.progress {
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    transition: width 1s ease-in-out; /* Animasi smooth */
}

/* ============================================
FOOTER (Bagian Bawah)
============================================
- Footer dengan gradient dark
- Informasi kontak dan copyright
============================================ */

footer {
    margin-top: auto; /* Push footer ke bawah */
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: white;
    padding: 2.5rem 0 1.8rem;
}

footer h5 {
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.4rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 0.9rem;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ============================================
ANIMATIONS (Animasi)
============================================
- Keyframes untuk animasi custom
- Kelas untuk menerapkan animasi
============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kelas untuk menerapkan animasi */
.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

/* ============================================
CUSTOM SECTIONS (Bagian Kustom)
============================================
- Section khusus untuk aplikasi
- Profile, peserta, debug info
============================================ */

section {
    padding: 40px 0;
}

/* Profile Header - untuk halaman profile */
.profile-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.8rem;
    border-radius: 10px;
    margin-bottom: 1.8rem;
}

.info-card {
    border-left: 3px solid var(--primary-color); /* Garis aksen di kiri */
    padding-left: 0.9rem;
    margin-bottom: 1.3rem;
}

/* Peserta Section - untuk daftar peserta */
.peserta-list {
    max-height: 280px;
    overflow-y: auto; /* Scroll jika konten panjang */
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--light-color);
}

.peserta-item {
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #dee2e6;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.peserta-item:hover {
    background: var(--primary-light);
    border-color: #adb5bd;
}

.peserta-item.selected-peserta {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.peserta-item.selected-peserta .form-check-label {
    color: white;
}

.peserta-badge {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.peserta-badge:hover {
    background: var(--primary-color);
    color: white;
}

/* No Data States - untuk halaman kosong */
.no-data,
.no-jadwal {
    text-align: center;
    padding: 2.5rem 1rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.no-data i,
.no-jadwal i {
    font-size: 3.5rem;
    opacity: 0.5;
    margin-bottom: 0.8rem;
}

.no-data h5,
.no-jadwal h4 {
    color: var(--gray-color);
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
}

.no-data p,
.no-jadwal p {
    color: var(--gray-color);
    max-width: 450px;
    margin: 0 auto 1.3rem;
    font-size: 0.95rem;
}

/* Debug Info - untuk debugging (biasanya di-hidden di production) */
.debug-info {
    background: #fff3cd;
    color: #856404;
    padding: 0.4rem;
    font-size: 0.7rem;
    border-left: 3px solid #ffeaa7;
    margin-top: 8px;
    border-radius: 4px;
}

.debug-info small {
    color: #6c757d;
}

/* Time display - untuk menampilkan waktu real-time */
#current-time {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 4px;
    display: block;
}

/* Styling khusus untuk kode username dan password */
.username-code {
    background-color: #f8f9fa;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
    font-size: 0.85rem;
}

.password-text {
    font-family: 'Courier New', monospace;
    color: #6c757d;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.date-text {
    color: #6c757d;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* ============================================
PAGINATION (Penomoran Halaman)
============================================ */

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.6rem;
    margin: 0 2px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.pagination .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

/* ============================================
CUSTOM SCROLLBAR (Scrollbar Kustom)
============================================
- Mengganti scrollbar default dengan yang lebih estetik
============================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
LOADING dan SPINNER (Loading Indicator)
============================================ */

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.15em;
}

/* ============================================
PRINT dan DOWNLOAD STYLES (Styling untuk Cetak)
============================================
- Styling khusus untuk halaman cetak
- Menyembunyikan elemen yang tidak perlu dicetak
============================================ */

.btn-cetak {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.45rem 1.3rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-cetak:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Style untuk section cetak */
#printSection {
    background: white;
    color: black;
    padding: 15px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
}

.print-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #000;
    padding-bottom: 12px;
}

.print-header h3 {
    font-size: 16pt;
    margin-bottom: 8px;
    color: #000;
}

.print-header p {
    font-size: 9pt;
    color: #666;
    line-height: 1.4;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 9pt;
}

.print-table th {
    background-color: #f8f9fa;
    border: 1pt solid #000;
    padding: 6px;
    text-align: left;
    font-weight: bold;
    color: #000;
}

.print-table td {
    border: 1pt solid #666;
    padding: 5px;
    color: #000;
}

.print-table tr:nth-child(even) {
    background-color: #f8f8f8;
}

.print-footer {
    margin-top: 25px;
    padding-top: 12px;
    border-top: 1pt solid #ccc;
    text-align: center;
    font-size: 8pt;
    color: #666;
}

/* Style untuk foto dalam laporan cetak */
.print-photo {
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #ccc;
}

/* ============================================
PRINT STYLES (Media Query untuk Cetak)
============================================
- CSS khusus ketika halaman dicetak
- Menghilangkan elemen UI yang tidak perlu
============================================ */

@media print {
    /* Sembunyikan elemen yang tidak perlu dicetak */
    .no-print,
    .btn,
    .navbar,
    .sidebar,
    .alert,
    .filter-section,
    .action-buttons,
    .modal,
    footer,
    .footer {
        display: none !important;
    }
    
    /* Reset styling untuk cetak */
    body {
        background: white !important;
        color: black !important;
        font-family: "Times New Roman", Times, serif;
        font-size: 11pt;
        line-height: 1.4;
        margin: 0;
        padding: 0;
    }
    
    .container-fluid {
        padding: 0 !important;
        width: 100% !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        margin-bottom: 10px;
        page-break-inside: avoid; /* Hindari card terpotong antar halaman */
    }
    
    .card-header {
        background: #f0f0f0 !important;
        color: black !important;
        border-bottom: 1px solid #ddd !important;
    }
    
    /* Styling tabel untuk cetak */
    .table {
        border: 1px solid #ddd;
        font-size: 9pt;
        width: 100%;
    }
    
    .table th,
    .table td {
        border: 1px solid #ddd;
        padding: 4px;
    }
    
    .table thead th {
        background: #f0f0f0 !important;
        color: black !important;
        border-bottom: 2px solid #000;
    }
    
    /* Header untuk cetak */
    .print-header {
        text-align: center;
        margin-bottom: 20px;
        border-bottom: 2pt solid #000;
        padding-bottom: 10px;
    }
    
    .print-header h1 {
        font-size: 18pt;
        margin-bottom: 5px;
        color: black !important;
    }
    
    .print-header h2 {
        color: #333 !important;
        font-size: 14pt;
        border-bottom: none;
    }
    
    .print-header .info {
        font-size: 9pt;
        color: #666;
    }
    
    /* Footer untuk cetak */
    .print-footer {
        text-align: center;
        margin-top: 20px;
        padding-top: 10px;
        border-top: 1px solid #ddd;
        font-size: 9pt;
        color: #666;
        position: fixed;
        bottom: 0;
        width: 100%;
        border-top: 1pt solid #ccc;
        padding-top: 8px;
    }
    
    /* Tabel khusus untuk cetak */
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin: 10px 0;
        font-size: 9pt;
    }
    
    .print-table th {
        background: #f0f0f0 !important;
        color: black !important;
        border: 1pt solid #000;
        padding: 5px;
        text-align: center;
        font-weight: bold;
    }
    
    .print-table td {
        border: 1pt solid #666;
        padding: 4px;
        text-align: left;
    }
    
    .print-table tr:nth-child(even) {
        background: #f8f8f8 !important;
    }
    
    /* Print-specific container - hanya elemen ini yang terlihat saat cetak */
    body * {
        visibility: hidden;
    }
    
    #printSection,
    #printSection * {
        visibility: visible;
    }
    
    #printSection {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    
    /* Page breaks untuk kontrol halaman */
    .page-break {
        page-break-before: always;
    }
    
    /* Styling link untuk cetak */
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    /* Tampilkan URL untuk link external */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #666;
    }
    
    /* Gambar untuk cetak */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Badges untuk cetak */
    .badge {
        border: 1pt solid #000 !important;
        background: white !important;
        color: black !important;
        padding: 1pt 3pt;
        font-size: 7pt;
    }
    
    /* Settings halaman */
    @page {
        margin: 0.5cm; /* Margin halaman */
    }
    
    /* Hindari pemotongan elemen penting */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        page-break-inside: avoid;
        page-break-after: avoid;
    }
    
    table, figure {
        page-break-inside: avoid;
    }
}

/* ============================================
RESPONSIVE DESIGN (Desain Responsif)
============================================
- Media queries untuk berbagai ukuran layar
- Mobile-first approach
============================================ */

/* Tablet dan mobile landscape (max-width: 768px) */
@media (max-width: 768px) {
    .sidebar {
        display: none; /* Sembunyikan sidebar di mobile */
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px;
    }
    
    .col-md-10 {
        width: 100%; /* Full width di mobile */
    }
    
    .hero-section {
        padding: 80px 0 50px;
        min-height: 60vh;
        margin-bottom: 30px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem; /* Perkecil font di mobile */
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .display-1 {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
        min-height: 160px;
        padding: 1rem;
    }
    
    /* Ubah group button menjadi vertikal di mobile */
    .btn-action-group {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .btn-action {
        width: 100%;
        text-align: center;
        min-width: 100px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Table responsive dengan horizontal scroll */
    .table-responsive {
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .table {
        font-size: 0.85rem; /* Perkecil font tabel */
    }
    
    .table th,
    .table td {
        padding: 0.6rem;
    }
    
    .kegiatan-foto {
        height: 150px;
    }
    
    /* Perkecil ukuran gambar di mobile */
    .foto-kegiatan,
    .foto-thumbnail,
    .img-thumbnail {
        width: 45px;
        height: 45px;
    }
    
    .btn-download-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-download-group .btn {
        width: 100%;
    }
    
    .modal-dialog {
        margin: 0.3rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1.2rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .foto-preview {
        max-height: 250px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .avatar-guru {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .no-foto {
        width: 45px;
        height: 45px;
    }
}

/* Mobile portrait (max-width: 576px) */
@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .btn-light {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .kegiatan-foto {
        height: 130px;
    }
    
    .stat-card {
        margin-bottom: 0.8rem;
        min-height: 140px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .btn-action {
        min-width: 70px;
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    
    .action-buttons {
        gap: 4px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 5px 4px;
        font-size: 0.8rem;
    }
    
    .foto-thumbnail,
    .img-thumbnail,
    .foto-kegiatan {
        width: 40px;
        height: 40px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .no-foto {
        width: 40px;
        height: 40px;
    }
    
    .avatar-guru {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
}

/* Extra small devices (max-width: 575.98px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .stat-card {
        margin-bottom: 12px;
    }
    
    .btn {
        width: 100%; /* Button full width di mobile kecil */
        margin-bottom: 4px;
    }
    
    .table-responsive {
        font-size: 11px;
    }
    
    section {
        padding: 30px 0;
    }
    
    footer {
        padding: 2rem 0 1.5rem;
    }
    
    footer h5 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%; /* 2 kolom di tablet kecil */
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%; /* 4 kolom di tablet */
    }
    
    .kegiatan-foto {
        height: 160px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
/* ============================================
CURRENT TIME DISPLAY (Jam Real-time)
============================================
- Styling khusus untuk display jam real-time
============================================ */

/* Container untuk jam real-time */
.current-time-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

/* Jam real-time di navbar */
.navbar .current-time {
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Jam real-time di sidebar */
.sidebar .current-time {
    color: white;
    background: var(--gradient-primary);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin: 1rem 0.5rem;
    box-shadow: var(--shadow-sm);
}

/* Jam real-time di dashboard admin */
.admin-dashboard .current-time {
    color: white;
    background: var(--gradient-primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

/* Jam real-time di dashboard guru */
.guru-dashboard .current-time {
    color: white;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

/* Jam real-time di stat card */
.stat-card .current-time {
    color: white;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* Jam real-time di card header */
.card-header .current-time {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    float: right;
}

/* Responsive untuk jam */
@media (max-width: 768px) {
    .current-time-container {
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .navbar .current-time {
        font-size: 0.8rem;
    }
    
    .admin-dashboard .current-time,
    .guru-dashboard .current-time {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .card-header .current-time {
        float: none;
        display: block;
        margin-top: 0.5rem;
        text-align: right;
    }
}

/* Tambahan untuk jam di berbagai konteks */
#current-time,
.time-display,
.real-time-clock {
    color: white !important;
    font-weight: 600;
}

/* Jam di dalam elemen dengan background gelap */
.bg-primary #current-time,
.bg-dark #current-time,
.bg-success #current-time,
.bg-info #current-time,
.bg-warning #current-time,
.bg-danger #current-time {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Jam di dalam navbar khusus */
.navbar .navbar-text.time-display {
    color: white !important;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    margin-left: 1rem;
}

/* Jam di footer */
footer .current-time {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}
/* ============================================
CENTERED STATS (Statistik Rata Tengah)
============================================
- Statistik di tengah dengan distribusi merata
============================================ */

/* Container untuk statistik tengah */
.stats-center {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Card statistik untuk layout tengah */
.stat-card-center {
    min-height: 100px;
    width: 150px; /* Lebar tetap */
    padding: 0.8rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid transparent;
    flex-shrink: 0; /* Mencegah card mengecil */
}

.stat-card-center:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-center .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.2rem 0;
    line-height: 1;
}

.stat-card-center .card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-center .card-text {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Warna khusus untuk layout tengah */
.stat-card-center.bg-primary { border-left-color: #4a65d8; }
.stat-card-center.bg-success { border-left-color: #28a745; }
.stat-card-center.bg-info { border-left-color: #17a2b8; }
.stat-card-center.bg-warning { border-left-color: #ffc107; }
.stat-card-center.bg-secondary { border-left-color: #6c757d; }

/* Responsif untuk layout tengah */
@media (max-width: 1200px) {
    .stats-center {
        justify-content: space-around;
    }
    
    .stat-card-center {
        width: 140px;
    }
}

@media (max-width: 992px) {
    .stats-center {
        gap: 0.6rem;
    }
    
    .stat-card-center {
        width: 130px;
        min-height: 95px;
    }
    
    .stat-card-center .stat-number {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .stats-center {
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .stat-card-center {
        width: 120px;
        min-height: 90px;
        padding: 0.6rem;
    }
    
    .stat-card-center .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-card-center .card-title {
        font-size: 0.8rem;
    }
    
    .stat-card-center .card-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .stats-center {
        justify-content: center;
        gap: 0.4rem;
    }
    
    .stat-card-center {
        width: 110px;
        min-height: 85px;
        padding: 0.5rem;
    }
    
    .stat-card-center .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-card-center .card-title {
        font-size: 0.75rem;
    }
    
    .stat-card-center .card-text {
        font-size: 0.65rem;
    }
}

/* Untuk mobile sangat kecil */
@media (max-width: 480px) {
    .stats-center {
        gap: 0.3rem;
    }
    
    .stat-card-center {
        width: 100px;
        min-height: 80px;
        padding: 0.4rem;
    }
    
    .stat-card-center .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-card-center .card-title {
        font-size: 0.7rem;
    }
    
    .stat-card-center .card-text {
        font-size: 0.6rem;
    }
}

/* Versi dengan flexbox distribusi merata */
.stats-center-even {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
}

.stats-center-even .stat-card-center {
    flex: 1;
    min-width: 0; /* Penting untuk flexbox agar bisa mengecil */
    max-width: 200px;
}

/* Grid layout untuk jumlah statistik ganjil */
.stats-center-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .stats-center-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-center-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .stats-center-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
FIX: HAPUS SEMUA GARIS DARI STAT CARD
============================================ */

/* Pastikan tidak ada border di card statistik */
.card[class*="bg-"].text-white {
    border: none !important;
}

/* Override khusus untuk Bootstrap border classes */
.border-0 {
    border: 0 !important;
}

.no-border {
    border: none !important;
}