@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #333;
}

/* ===== LOGIN ===== */
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    background: #f4f6f9; /* PUTIH / ABU MUDA */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}


/* CONTAINER */
.login-container {
    width: 100%;
    max-width: 420px;
}

/* BOX */
.login-box {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

/* TITLE */
.login-box h2 {
    text-align: center;
    margin-bottom: 6px;
    font-size: 26px;
}

.login-box p {
    text-align: center;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px;
}

/* ERROR */
.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 14px;
    text-align: center;
}

/* FORM */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
}

/* BUTTON */
.btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 6px;
}

.btn:hover {
    background: #1d4ed8;
}

/* RESPONSIVE HP */
@media (max-width: 480px) {
    .login-box {
        padding: 22px;
    }

    .login-box h2 {
        font-size: 22px;
    }

    .btn {
        font-size: 15px;
    }
}

/* ===== DASHBOARD ===== */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #111827;
    color: #fff;
    padding: 20px;
}

.sidebar h3 {
    margin-bottom: 24px;
}

.sidebar a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
}

.sidebar a:hover,
.sidebar a.active {
    background: #1f2933;
    color: #fff;
}

.content {
    flex: 1;
    padding: 32px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.card h4 {
    margin: 0;
    font-size: 15px;
    color: #555;
}

.card h1 {
    margin-top: 8px;
    font-size: 32px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.table th, .table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
}

.table tr:hover {
    background: #f5f7ff;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
}

.actions {
    display: flex;
    gap: 6px;
}

/* ===============================
   LOGIN BRANDING
================================ */
.login-logo {
    max-width: 90px;
    margin: 0 auto 12px;
    display: block;
}

.login-subtitle {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 16px;
}

/* ===============================
   FOOTER TEXT
================================ */
.footer-text {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.footer-text a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* ===============================
   ANIMASI SLIDE LOGIN CARD
================================ */
.login-box {
    animation: slideDown 0.8s ease-out forwards;
    transform: translateY(-50px);
    opacity: 0;
}

/* KEYFRAMES */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.login-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

