@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    margin: 0; 
    font-family: 'Poppins', sans-serif; 
    background-color: #f0f4f8;
    color: #333;
}

/* ==========================================================================
   1. ANIMASI SELENDANG LOGIN (AWAL MASUK)
   ========================================================================== */
.selendang {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(135deg, #006994, #001f3f);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2.5rem; font-weight: bold; text-align: center; padding: 20px;
    box-sizing: border-box;
    animation: slideUp 1.5s cubic-bezier(0.86, 0, 0.07, 1) 2.5s forwards;
}
@keyframes slideUp {
    to { transform: translateY(-100%); opacity: 0; visibility: hidden; }
}

/* Teks Berjalan Warna-Warni */
.rainbow-marquee {
    background: linear-gradient(to right, #ff4757, #ffa500, #2ed573, #1e90ff, #9b59b6);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    font-weight: bold; font-size: 1.1rem;
}

/* ==========================================================================
   2. SIDEBAR MODERN (BIRU LAUT)
   ========================================================================== */
.sidebar {
    width: 260px; background: linear-gradient(180deg, #006994, #004c6d); 
    height: 100vh; position: fixed; top: 0; left: 0;
    color: white; padding-top: 20px; box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.sidebar h2 { 
    text-align: center; font-size: 1.6rem; margin-bottom: 25px;
    letter-spacing: 2px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.sidebar a {
    display: flex; align-items: center; color: rgba(255,255,255,0.8); 
    padding: 14px 22px; text-decoration: none; font-size: 0.95rem; 
    border-left: 4px solid transparent; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar a i { margin-right: 15px; font-size: 1.2rem; width: 25px; text-align: center;}

/* Efek Hover Sidebar Kekinian */
.sidebar a:hover {
    color: #ffffff; background: rgba(255, 255, 255, 0.1);
    padding-left: 30px; border-left: 4px solid #00ffcc;
    text-shadow: 0 0 10px rgba(0,255,204,0.5);
}

/* ==========================================================================
   3. LAYOUT UTAMA, HEADER & JAM DIGITAL
   ========================================================================== */
.main-content { margin-left: 260px; padding: 30px; transition: all 0.3s; }

.header {
    display: flex; 
    justify-content: flex-end; /* Memastikan elemen berbaris di kanan */
    align-items: center; 
    gap: 25px; /* Jarak pas antara Jam dan Tombol Logout */
    background: white; padding: 15px 25px; border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); margin-bottom: 30px;
}
.jam-digital { 
    font-size: 1.1rem; font-weight: 600; color: #4a5568; 
    background: #edf2f7; padding: 8px 15px; border-radius: 8px;
    display: flex; align-items: center; gap: 8px;
}
.btn-logout { 
    background: #ff4757; color: white; padding: 9px 18px; border-radius: 8px; 
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255,71,87,0.3); transition: all 0.3s ease;
}
.btn-logout:hover { 
    background: #ff6b81; transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(255,71,87,0.4); 
}

/* ==========================================================================
   4. KARTU DASHBOARD (EFEK FLOATING)
   ========================================================================== */
.card-container { display: flex; gap: 25px; margin-bottom: 30px; }
.card {
    background: white; flex: 1; padding: 25px; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04); text-align: center; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden;
}
/* Efek Hover Naik Gantung */
.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.12); 
}
.card h4 { margin: 0 0 10px 0; color: #718096; font-size: 1rem; font-weight: 400; }
.card h3 { margin: 0; font-size: 2.2rem; color: #2d3748; font-weight: 600; }

/* ==========================================================================
   5. FORM & TABEL ELEGAN (UNTUK HALAMAN INPUT & DATA)
   ========================================================================== */
.form-box {
    background: white; padding: 30px; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); max-width: 600px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #4a5568;}
.form-control {
    width: 100%; padding: 12px; border: 1px solid #cbd5e0; border-radius: 8px;
    box-sizing: border-box; transition: all 0.3s; font-family: inherit;
}
.form-control:focus {
    border-color: #006994; outline: none; box-shadow: 0 0 0 3px rgba(0,105,148,0.2);
}

/* Tabel Modern */
.table-responsive { background: white; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); overflow: hidden; }
.custom-table { width: 100%; border-collapse: collapse; text-align: left; }
.custom-table th { background-color: #006994; color: white; padding: 15px 20px; font-weight: 600; }
.custom-table td { padding: 15px 20px; border-bottom: 1px solid #e2e8f0; }
.custom-table tr:hover { background-color: #f7fafc; transition: background 0.2s; }

/* Tombol Aksi di Tabel */
.btn-action { padding: 6px 12px; border-radius: 6px; text-decoration: none; font-size: 0.85rem; margin-right: 5px; color: white; display: inline-block; transition: 0.2s; }
.btn-edit { background: #ffa502; }
.btn-edit:hover { background: #ff7f50; }
.btn-hapus { background: #ff4757; }
.btn-hapus:hover { background: #ff6b81; }
.btn-rusak { background: #747d8c; }
.btn-rusak:hover { background: #57606f; }