:root {
    --primary: #1e56a0;
    --secondary: #d6e4f0;
    --bg-light: #f6f6f6;
    --dark: #222831;
    --success: #28a745;
    --warning: #ffc107;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: var(--bg-light); color: var(--dark); }

/* Laman Login Sejuk */
.login-container {
    background: linear-gradient(135deg, #a8dedc 0%, #f6f6f6 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}
.login-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-control { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; }
.btn { width: 100%; padding: 10px; border: none; background: var(--primary); color: white; border-radius: 6px; cursor: pointer; font-size: 16px; }
.btn:hover { background: #163e75; }

/* Dashboard Responsif Layout */
.wrapper { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--dark); color: white; padding: 20px; transition: 0.3s; }
.sidebar h3 { margin-bottom: 20px; text-align: center; font-size: 18px; }
.sidebar a { display: block; color: #b3b8c3; padding: 12px; text-decoration: none; border-radius: 6px; margin-bottom: 5px; }
.sidebar a:hover, .sidebar a.active { background: var(--primary); color: white; }

.main-content { flex: 1; padding: 20px; }
.header-school { background: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; border-bottom: 4px solid var(--primary); }
.header-school img { width: 60px; margin-right: 15px; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); position: relative; }
.emblem { position: absolute; top: 15px; right: 15px; background: red; color: white; padding: 2px 8px; border-radius: 20px; font-size: 12px; }

/* Media Query untuk HP */
@media (max-width: 768px) {
    .wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .header-school { flex-direction: column; text-align: center; }
    .header-school img { margin: 0 0 10px 0; }
}

