/* --- 1. IMPORT FONT MODERN (POPPINS) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #4e73df;
    --primary-green: #11998e;
    --secondary-green: #38ef7d;
    --bg-light: #f8f9fa;
    --text-dark: #2c3e50;
    --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5; /* Warna background abu-abu muda yang nyaman */
    color: var(--text-dark);
    overflow-x: hidden; /* Mencegah scroll samping di HP */
}

/* --- 2. GLOBAL CARD STYLE (KARTU) --- */
.card {
    border: none;
    border-radius: 15px; /* Sudut membulat */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Bayangan halus */
    transition: all 0.3s ease;
    background: #fff;
}

.card:hover {
    transform: translateY(-2px); /* Efek naik dikit pas di-hover */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Header Card yang lebih rapi */
.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
}

/* --- 3. CUSTOM GRADIENTS (WARNA FRESH) --- */

/* Gradient Hijau (Khas Guru) */
.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white;
}

/* Gradient Biru (Khas Admin) */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%) !important;
    color: white;
}

/* Gradient Orange (Warning) */
.bg-gradient-warning {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%) !important;
    color: white;
}

/* --- 4. BUTTONS & INTERACTION --- */
.btn {
    border-radius: 50px; /* Tombol bulat (Pill) */
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: scale(1.05); /* Membesar sedikit saat disentuh */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Tombol Scan Khusus */
.btn-scan {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
}

/* --- 5. TABLE STYLING --- */
.table-responsive {
    border-radius: 15px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
    white-space: nowrap;
}

/* --- 6. FORM INPUTS --- */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e3e6f0;
    padding: 0.6rem 1rem;
    transition: border-color 0.2s;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    border-color: #bac8f3;
}

/* --- 7. NAVBAR (ADMIN & GURU) --- */
.navbar {
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* --- 8. LOGIN PAGE SPECIFIC --- */
body.login-body {
    background: linear-gradient(135deg, #0061f2 0%, #00c6f7 100%);
    min-height: 100vh;
}

.card-login {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* --- 9. MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Font judul dikecilkan di HP */
    h1.h2 { font-size: 1.5rem; }
    h2.fw-bold { font-size: 1.8rem; }
    
    /* Kartu di HP lebih compact */
    .card-body { padding: 1.2rem; }
    
    /* Tombol di HP full width jika perlu */
    .btn-mobile-block { width: 100%; display: block; }
}