/* --- GLOBAL & THEME --- */
body { background-color: #f0f2f5; font-family: 'Inter', sans-serif; min-height: 100vh; }
.hidden { display: none !important; }
.cursor-pointer { cursor: pointer; }
.uppercase-input { text-transform: uppercase; }

/* --- WARNA CUSTOM (BARU) --- */
.bg-purple { background-color: #6f42c1 !important; color: white; }
.text-purple { color: #6f42c1 !important; }
.border-purple { border-color: #6f42c1 !important; }

/* Warna Jingga untuk "Jawatan Berbeza" */
.bg-orange { background-color: #fd7e14 !important; color: white; }
.text-orange { color: #fd7e14 !important; }

/* Warna Teal Blue (Permintaan User untuk butang Pencapaian) */
.btn-teal { background-color: #008080 !important; color: white !important; border: none; }
.btn-teal:hover { background-color: #006666 !important; color: white !important; }

/* Butang Hijau Teks Hitam (Custom Request - Modul Pencapaian) */
.btn-hijau-aksi {
    background-color: #2ecc71 !important; /* Emerald Green cerah */
    color: #000 !important; /* Teks Hitam */
    border: none;
}
.btn-hijau-aksi:hover {
    background-color: #27ae60 !important; /* Gelap sikit bila hover */
    color: #000 !important;
}

/* --- BRANDING COLORS (PENSIJILAN TEKNOLOGI) --- */
/* Google Red */
.bg-google { background-color: #DB4437 !important; color: white; }
.text-google { color: #DB4437 !important; }
.border-google { border-color: #DB4437 !important; }
.bg-google-sub { background-color: rgba(219, 68, 55, 0.1) !important; color: #DB4437 !important; }

/* Apple Dark Grey */
.bg-apple { background-color: #2c2c2c !important; color: white; }
.text-apple { color: #2c2c2c !important; }
.border-apple { border-color: #2c2c2c !important; }
.bg-apple-sub { background-color: rgba(44, 44, 44, 0.1) !important; color: #2c2c2c !important; }

/* Microsoft Blue */
.bg-microsoft { background-color: #00a4ef !important; color: white; }
.text-microsoft { color: #00a4ef !important; }
.border-microsoft { border-color: #00a4ef !important; }
.bg-microsoft-sub { background-color: rgba(0, 164, 239, 0.1) !important; color: #00a4ef !important; }

/* --- HEADER --- */
.header-bg {
  background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
  color: white; padding: 2.5rem 0; margin-bottom: -3rem; padding-bottom: 5rem;
}
.main-container { margin-top: -2rem; }

/* --- CARD --- */
.card { border: none; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.border-top-primary { border-top: 4px solid #0d6efd !important; }
.border-top-warning { border-top: 4px solid #ffc107 !important; }

/* --- ACTIVE CARD FILTER (NEW) --- */
/* Efek bila kad statistik ditekan sebagai filter */
.card-active-filter {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
    border: 2px solid #0d6efd !important;
    position: relative;
}
.card-active-filter::after {
    content: "\f00c"; /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -10px;
    right: -10px;
    background: #0d6efd;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 10;
}

/* --- TOP CONTRIBUTORS TABLE (NEW) --- */
.top-school-row {
    transition: background-color 0.2s;
    cursor: pointer;
}
.top-school-row:hover {
    background-color: #f8f9fa;
}
.medal-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}
.medal-1 { background-color: #FFD700; color: #5c4d00; }
.medal-2 { background-color: #C0C0C0; color: #4a4a4a; }
.medal-3 { background-color: #CD7F32; color: #5a3a18; }

/* --- DASHBOARD SCHOOL CARDS --- */
.school-card {
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; height: 100%;
  border: 1px solid rgba(0,0,0,0.05); background: white;
}
.school-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); border-color: #0d6efd; }
.school-name { font-size: 0.85rem; font-weight: 700; color: #212529; line-height: 1.4; margin-bottom: 0.5rem; }
.status-badge { font-size: 0.7rem; padding: 4px 6px; border-radius: 20px; font-weight: 700; }

/* WhatsApp & Status Row */
.tele-status-row { 
    background-color: #f8f9fa; border-top: 1px solid #eee; padding: 0; 
    border-radius: 0 0 12px 12px; font-size: 0.75rem; 
}
.row-item { display: flex; justify-content: space-between; align-items: center; }

/* --- ADMIN DASHBOARD UTILS --- */
.category-header { font-weight: 700; color: #495057; border-left: 4px solid #0d6efd; padding-left: 10px; margin-bottom: 15px; margin-top: 20px; }
.filter-badge { opacity: 0.6; transform: scale(0.98); }
.filter-badge.active { opacity: 1; transform: scale(1); box-shadow: 0 2px 4px rgba(0,0,0,0.15); }

/* --- MENU USER --- */
.menu-card { transition: all 0.3s ease; height: 100%; cursor: default; }
.menu-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.icon-box { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; }

/* Warna Icon Menu */
.icon-ai { background-color: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.icon-school { background-color: rgba(25, 135, 84, 0.1); color: #198754; }
.icon-gemini { background-color: rgba(111, 66, 193, 0.1); color: #6f42c1; } 

.btn-menu { border-radius: 50px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- LOADING & MODAL --- */
#loadingOverlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,0.85); z-index: 9999;
  display: flex; justify-content: center; align-items: center; backdrop-filter: blur(2px);
}
.fade-up { animation: fadeInUp 0.5s ease-out forwards; opacity: 0; transform: translateY(20px); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* --- QUEUE MODAL --- */
.queue-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 10000; display: flex; justify-content: center; align-items: center; }
.queue-card { background: white; width: 90%; max-width: 500px; border-radius: 15px; padding: 2rem; position: relative; text-align: center; }
.btn-wa-big { background: #25D366; color: white; border: none; padding: 12px 20px; font-size: 1.1rem; font-weight: bold; border-radius: 50px; width: 100%; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: 0.3s; }
.btn-wa-big:hover { background: #1ebc57; transform: scale(1.02); }
.btn-close-queue { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2rem; line-height: 1; color: #aaa; }