@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

html,
body {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
    background-color: #fff;
    line-height: 1.6;
}

/* Heading pakai Montserrat biar lebih tegas */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #0f172a;
}

/* Optional: kalau mau beda di tombol */
button,
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}


/* Container kalender */
#calendar {
    max-width: 200px;
    max-height: 250px;
    margin: 0 auto;
    font-size: 10px;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 3px 8px rgba(30, 58, 138, 0.15);
    border: 1px solid #e5e7eb;
}

/* Judul bulan */
.fc-toolbar-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e3a8a;
    text-shadow: 0 1px 2px rgba(59, 130, 246, 0.1);
}

/* Header hari */
.fc-col-header-cell {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #ffffff;
    font-size: 10px;
    padding: 3px 0;
    border: none;
}

/* Kotak hari */
.fc-daygrid-day {
    font-size: 9px;
    height: 25px;
    transition: background 0.2s ease;
}

.fc-daygrid-day:hover {
    background: rgba(59, 130, 246, 0.08);
}

/* Event */
.fc-event {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    border: none !important;
    border-radius: 4px;
    padding: 0 2px;
    font-size: 8px;
    line-height: 1.2;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(30, 58, 138, 0.25);
}

/* Tombol navigasi (prev/next/today) */
.fc .fc-button {
    font-size: 9px !important;
    padding: 2px 5px !important;
    border-radius: 6px;
    border: none !important;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    color: #fff !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.25);
}

.fc .fc-button:hover {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a) !important;
    transform: translateY(-1px);
}

/* Garis pembatas antar hari */
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #e5e7eb;
}

/* ================ Dashboard awal ================== */
.dashboard-container {
    color: #002b5b;
    background-color: #ffffff;
    padding-bottom: 40px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #002b5b;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #003366;
    border-left: 4px solid #003366;
    padding-left: 8px;
    margin-bottom: 15px;
}

/* Tombol utama */
.btn-add-mapel {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 51, 102, 0.2);
}

.btn-add-mapel:active {
    transform: scale(0.98);
}

/* Kartu Mapel */
.mapel-card {
    background-color: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.1);
    transition: none;
}

.mapel-card .card-title {
    color: #003366;
    font-weight: 600;
}

.mapel-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.btn-mapel {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 51, 102, 0.25);
}

.stats-card {
    background-color: #ffffff;
    border: 1px solid #dce3eb;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 51, 102, 0.08);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #003366;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.btn-stat {
    background-color: #007f7f;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 127, 127, 0.25);
}


/* ================ Dashboard awal ================== */
.welcome-card {
    background: linear-gradient(135deg, #003366, #1e3a8a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.25);
    border: none;
}

h2.halo {
    color: #fff;
}

.stats-card {
    background-color: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.08);
    color: #003366;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #003366;
}

.student-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #002b5b;
}

.calendar-card {
    background-color: #ffffff;
    border: 1px solid #e6e9ef;
    box-shadow: 0 3px 8px rgba(0, 51, 102, 0.1);
}

.btn-add-mapel {
    background-color: #003366;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
    border: none;
}


/* ====== Materi ======== */

:root {
    --navy: #003366;
    --blue-dark: #1e3a8a;
    --blue-light: #3b82f6;
    --teal: #007f7f;
    --gray-text: #6c757d;
}

/* Umum */
.dashboard-container {
    background-color: #fff;
    padding: 30px 0;
    color: var(--navy);
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-dark);
    border-left: 4px solid var(--blue-dark);
    padding-left: 8px;
}

/* ==============================
   FORM MATERI
   ============================== */
form {
    font-family: 'Poppins', sans-serif;
}

.form-label {
    font-weight: 600;
    color: var(--navy);
}

.form-control {
    border: 1px solid #dce3eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.95rem;
    transition: border 0.2s ease;
}

.form-control:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* ==============================
   CARD & LIST
   ============================== */
.card {
    background-color: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.1);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #e6e9ef;
    transition: background 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* ==============================
   BUTTONS
   ============================== */
.btn-mapel {
    background-color: var(--navy);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 51, 102, 0.2);
    transition: all 0.2s ease;
}

.btn-mapel:hover {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    transform: translateY(-1px);
}

.btn-stat {
    background-color: var(--teal);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 127, 127, 0.25);
    transition: all 0.2s ease;
}

.btn-stat:hover {
    background: linear-gradient(135deg, #009999, var(--teal));
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* ==============================
   TABLE (SHOW PAGE)
   ============================== */
.table {
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.95rem;
}

.table th {
    background-color: #f0f4f8;
    color: var(--navy);
    font-weight: 600;
}

.table td {
    color: var(--gray-text);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 51, 102, 0.04);
}

/* ==============================
   ALERT
   ============================== */
.alert {
    border-radius: 10px;
    background-color: #e8f4fd;
    color: var(--blue-dark);
    border: 1px solid #cfe2ff;
}

