/* ============================================
   style.css - Gaya Sistem MySnKomp Sys
   Font: Poppins (Google Fonts)
   ============================================ */

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

/* Kad utama */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Butang */
.btn {
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}

.btn-sm {
    font-size: 0.78rem;
}

/* Borang */
.form-control, .form-select {
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.88rem;
    color: #444;
}

/* Halaman login/signup tengah */
.login-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-logo {
    font-size: 2.5rem;
    color: #0d6efd;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
}

.login-sub {
    font-size: 0.82rem;
    color: #888;
}

/* Kad statistik dashboard */
.stat-card {
    border-radius: 12px;
    padding: 20px;
    color: white;
    text-align: center;
}

.stat-card .stat-num {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    opacity: 0.9;
    margin-top: 5px;
}

.bg-grad-blue { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.bg-grad-green { background: linear-gradient(135deg, #198754, #146c43); }
.bg-grad-orange { background: linear-gradient(135deg, #fd7e14, #e85d04); }
.bg-grad-purple { background: linear-gradient(135deg, #6f42c1, #59359a); }

/* Jadual */
.table {
    font-size: 0.88rem;
}

.table th {
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* Badge gred */
.badge-gred {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
}

/* Sidebar admin */
.sidebar-link {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    color: #444;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 3px;
    transition: all 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: #0d6efd;
    color: white;
}

.sidebar-link i {
    width: 20px;
    margin-right: 5px;
}

/* Laporan print */
@media print {
    .no-print { display: none !important; }
    .navbar { display: none !important; }
    footer { display: none !important; }
    .card { box-shadow: none; }
    body { background: white; }
    .container { max-width: 100%; }
}

/* Footer */
.footer {
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

/* Alert */
.alert {
    border-radius: 10px;
    font-size: 0.88rem;
}

/* Input file */
.form-control[type="file"] {
    cursor: pointer;
}

/* Heading section */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    border-left: 4px solid #0d6efd;
    padding-left: 12px;
    margin-bottom: 20px;
}

/* Tab pane */
.nav-pills .nav-link {
    color: #555;
    font-size: 0.85rem;
    border-radius: 8px;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
}

/* Responsive table wrapper */
.table-responsive {
    border-radius: 10px;
}
