/* ============== BADGE WARNA JURUSAN =================== */
.badge { padding: .35rem .5rem; border-radius: .375rem; font-weight:600; }
.badge.jurusan-TKJ  { background:#ffffff; color:#000; border:1px solid #ddd; }
.badge.jurusan-TITL { background:#ff9800; color:#fff; }
.badge.jurusan-TP   { background:#42a5f5; color:#fff; }
.badge.jurusan-TKR  { background:#fdd835; color:#000; }
.badge.jurusan-TKP  { background:#66bb6a; color:#fff; }
.badge.jurusan-DPIB { background:#8d6e63; color:#fff; }

/* ===== Bagde Role Users ===== */
.bg-orange {
    background-color: #fd7e14 !important;
    color: rgba(183, 185, 72, 0.623) !important;
}

/* ============ GLOBAL ============ */
body {
    font-family: "Poppins", sans-serif;
    background: #eef2f7;
}

/* ============ HEADER ============ */
.matrix-header {
    background: #111827;
    padding: 12px 8px;
    position: fixed;        /* Bikin header tetap */
    top: 0;                 /* Tempelkan di atas */
    left: 0;
    right: 0;
    z-index: 999;           /* Pastikan berada di atas elemen lain */
    box-shadow: 0 2px 8px rgba(0,0,0,0.25); /* Shadow agar terlihat mengambang */
}

/* Brand style */
.matrix-brand {
    color: #4ade80;
    font-size: 20px;
    font-weight: 700;
}

.matrix-brand .brand-light {
    color: #93c5fd;
}

/* ================== FIXED HEADER SPACING ================== */
body {
    padding-top: 65px; /* Supaya konten tidak tertutup header fixed */
}

/* ============ SIDEBAR ============ */
.matrix-sidebar {
    position: fixed;
    top: 58px;
    left: 0;
    width: 230px;
    height: calc(100vh - 58px);
    background: #111827; /* lebih modern (Matrix style: dark navy) */
    padding-top: 20px;
    overflow-y: auto;
    transition: all .3s;

    /* Rounded + Shadow */
    border-radius: 0 0px 0px 0;
    box-shadow: 0px 0 0px rgba(0, 0, 0, 0.45);
}

/* Jika sidebar mode "open" untuk mobile toggle */
.matrix-sidebar.open {
    transform: translateX(-230px);
}

/* Menu UL */
.matrix-menu {
    list-style: none;
    padding-left: 0;
}

/* Menu Item */
.matrix-menu li a {
    color: #e5e7eb;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;

    /* NEW: Rounded item + bold text */
    border-radius: 12px;
    font-weight: 600;

    /* Smooth animation */
    transition: background .25s, transform .25s, color .25s;
}

/* Hover Effect */
.matrix-menu li a:hover {
    background: #0caf7e;
    color: #ffffff;
    transform: scale(1.10);
}

/* Active Menu */
.matrix-menu a.active {
    background: #7de0a1;
    color: #000;

    margin: 0 8px;     /* jarak kiri–kanan */
    padding: 10px 14px; /* biar tidak menempel teksnya */
    border-radius: 12px;
}

/* Icon Style */
.matrix-menu li a i {
    font-size: 18px;
    font-weight: bold; /* ikon lebih tebal */
    opacity: 0.9;
}

/* ============ CONTENT WRAPPER ============ */
.matrix-content {
    margin-left: 230px;
    padding: 25px;
    transition: .3s;
}

.matrix-sidebar.open + .matrix-content {
    margin-left: 0;
}

.dropdown-menu {
    z-index: 999999 !important;
    position: absolute !important;
}

/* ============= CARD BASE =============== */
.matrix-card {
    border-radius: 10px;
    padding: 20px;
    color: rgb(255, 255, 255);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.15);
}

.matrix-card * {
    color: #ffffff !important;
    font-weight: 600;
}

/* Hover efek */
.matrix-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 22px rgba(0,0,0,0.22);
}

/* ICON STYLE (tetap seperti sebelumnya) */
.matrix-icon {
    font-size: 28px;
    opacity: 0.9;
    margin-bottom: 8px;
}

/* WARNA CARD BARU */
.matrix-blue {
    background: #1E88E5; /* Blue */
}

.matrix-green {
    background: #43A047; /* Green */
}

.matrix-orange {
    background: #FB8C00; /* Orange */
}

.matrix-red {
    background: #E53935; /* Red */
}

/* ===================== CHART SIZING ===================== */
.chart-box-wide canvas {
    height: 180px !important;
}

.chart-box-7 canvas {
    height: 160px !important;
}

.chart-box-30 canvas {
    height: 180px !important;
}

/* ===================== MINI CALENDAR ===================== */
.calendar-card {
    min-height: 260px;
}

.full-calendar {
    width: 100%;
    max-width: 260px;
    margin: auto;
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-name {
    font-size: 12px;
    font-weight: bold;
}

.calendar-day {
    padding: 4px 0;
    font-size: 12px;
    border-radius: 6px;
}

.calendar-today {
    background:#0d6efd;
    color:white;
    font-weight:bold;
}

.calendar-holiday {
    background:#dc3545;
    color:white;
    font-weight:bold;
}

.calendar-sunday {
    color:#dc3545;
}

.calendar-day:hover {
    cursor:pointer;
    background:#f1f1f1;
}

/* Tooltip simple */
.tooltip-mini {
    position:absolute;
    background:#333;
    color:#fff;
    padding:5px 8px;
    font-size:11px;
    border-radius:4px;
    transform:translate(-50%, -130%);
    white-space:nowrap;
    z-index:1000;
    display:none;
}

/* ===================== PRESENSI TERBARU ====================== */
.recent-box {
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* =============================
   GENERIC PAGE STYLING
   ============================= */

.card {
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.table th, .table td {
    vertical-align: middle;
}

/* =============================
   FULLCALENDAR CUSTOM STYLE
   ============================= */
#calendar {
    max-width: 100%;
    margin: 0 auto;
    min-height: 720px; /* kalender semakin panjang */
}

/* Paksa body kalender lebih tinggi */
.fc-view-harness {
    min-height: 750px !important;
}

/* Hilangkan scroll internal */
.fc .fc-scroller {
    overflow: hidden !important;
}

/* Perbesar grid kalender */
.fc .fc-daygrid-body {
    min-height: 750px !important;
}

/* Judul toolbar (bulan - tahun) dibuat lebih kecil */
.fc .fc-toolbar-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    padding: 0;
    margin: 0;
}

/* Perkecil tombol navigasi */
.fc .fc-button {
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    height: auto !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
}

/* Perkecil tombol hari ini */
.fc .fc-today-button {
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
}

/* Atur jarak antar tombol */
.fc .fc-button-group .fc-button {
    margin: 0 2px !important;
}

/* Toolbar agar terlihat lebih tipis */
.fc-toolbar {
    padding: 5px 0 !important;
}

/* Event libur nasional (merah lembut) */
.fc-daygrid-event {
    font-size: 12px !important;
    color: #a71d2a !important;
}

/* Highlight background merah */
.fc-bg-event {
    background-color: rgba(220, 53, 69, 0.25) !important;
    border: 1px solid red !important;
}

/* Grid kalender */
.fc td, .fc th {
    font-size: 0.85rem !important;
}

/* =============================
   FORM SETTINGS
   ============================= */

#jamForm input,
#liburForm input {
    font-size: 0.9rem;
}

.btn {
    border-radius: 8px !important;
}

/* ===== FOOTER ===== */
.matrix-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 230px; /* mengikuti lebar sidebar */
    width: calc(100% - 230px);
    background: #111827;
    color: #cbd5e1;
    text-align: center;
    padding: 8px 0;
    font-weight: 300;       /* font tipis */
    font-size: 14px;
    border-top: 1px solid #1e293b;
    z-index: 999;
    backdrop-filter: blur(4px);
}

/* Jika sidebar ditutup */
.matrix-sidebar.open ~ .matrix-footer-fixed {
    left: 0;
    width: 100%;
}

/* ===== Rounded Table Style ===== */
.matrix-table-rounded {
    border-radius: 14px;
    overflow: hidden;              /* supaya sudut rounded bekerja */
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Header rounded + darker style */
.matrix-table-rounded thead th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

/* Remove sharp borders inside */
.matrix-table-rounded td,
.matrix-table-rounded th {
    border-left: 0 !important;
    border-right: 0 !important;
}

/* ====== ROUNDED TABEL ====== */
.table-bordered {
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}
