/* =====================================================
   STYLE CSS APLIKASI ABSENSI SMK
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Halaman Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.login-box .logo {
    text-align: center;
    font-size: 50px;
    margin-bottom: 15px;
}

/* Halaman Utama */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.pilihan-login {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-login {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    width: 280px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-login:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-login .icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.card-login h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-login span {
    color: #666;
    font-size: 14px;
}

/* Dashboard */
.sidebar {
    background: #2c3e50;
    min-height: 100vh;
    color: white;
    padding: 0;
}

.sidebar .brand {
    padding: 20px;
    background: #1a252f;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.sidebar .menu a {
    display: block;
    padding: 15px 25px;
    color: #bdc3c7;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.sidebar .menu a:hover,
.sidebar .menu a.active {
    background: #34495e;
    color: white;
    border-left-color: #3498db;
}

.content-area {
    padding: 30px;
    background: #ecf0f1;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    color: #2c3e50;
    font-weight: 700;
}

/* Statistik Card */
.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.stat-card .icon-stat {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 15px;
}

.stat-card h4 {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-card .angka {
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
}

.bg-hadir { background: #27ae60; }
.bg-terlambat { background: #f39c12; }
.bg-alfa { background: #e74c3c; }
.bg-siswa { background: #3498db; }

/* Tabel */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: none;
}

.card-header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0 !important;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

/* Alert */
.alert {
    border: none;
    border-radius: 8px;
}

/* Button */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
}

.btn-primary { background: #3498db; border-color: #3498db; }
.btn-primary:hover { background: #2980b9; border-color: #2980b9; }
.btn-success { background: #27ae60; border-color: #27ae60; }
.btn-danger { background: #e74c3c; border-color: #e74c3c; }
.btn-warning { background: #f39c12; border-color: #f39c12; }

/* Profil Siswa di Ortu */
.profil-siswa {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profil-siswa .foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
    margin: 0 auto 20px;
}

.profil-siswa h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 5px;
}

.profil-siswa .info {
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 28px; }
    .pilihan-login { gap: 15px; }
    .card-login { width: 100%; padding: 25px; }
    .content-area { padding: 15px; }
}

/* =====================================================
   FOOTER GLOBAL - Tampil di SEMUA halaman
   ===================================================== */
.footer-global {
    background: #1e293b;
    color: #f1f5f9;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 4px solid #3498db;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    clear: both;
}
.footer-global strong {
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 0.3px;
}
.footer-global small {
    color: #94a3b8;
    font-size: 12.5px;
}

/* Khusus halaman LOGIN (yang pakai .login-container):
   Footer harus berada di BAWAH login-box, bukan sticky */
.login-container + .footer-global {
    margin-top: 0;
    background: rgba(30, 41, 59, 0.95);
    border-top: 3px solid rgba(52, 152, 219, 0.8);
}

/* Khusus halaman DEPAN (yang pakai .hero-section):
   Footer berada di paling bawah */
.hero-section + .footer-global {
    margin-top: 0;
}

/* Agar footer tidak tertabrak sidebar pada layout admin */
.container-fluid + .footer-global {
    position: relative;
    z-index: 5;
}
