/* =========================================================================
   Stylesheet Website Program Studi
   Tema: Hijau (Teal/Emerald)
   ========================================================================= */

/* ═══ GLOBAL ═══ */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f4f6f9;
    color: #334155;
}

a { text-decoration: none; }

/* ═══ NAVBAR ═══ */
.navbar {
    background: linear-gradient(135deg, #1e8a7c 0%, #12a76e 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding-top: .85rem;
    padding-bottom: .85rem;
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: .65rem;
}

.navbar-brand .brand-logo {
    width: 50px; 
    height: 50px; 
    border-radius: 50%; /* Membuat gambar menjadi bulat sempurna */
    object-fit: cover;
    background-color: #ffffff; /* Memaksa latar belakang menjadi putih */
    padding: 1px; /* Memberikan sedikit ruang/bingkai putih di sekitar logo */
    border: 1px solid #ffffff; /* Memastikan batas luar logo juga berwarna putih bersih */
}


.navbar-brand .brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.navbar-brand .brand-text { line-height: 1.15; }
.navbar-brand .brand-text small {
    display: block; font-weight: 500; font-size: .72rem; color: #ccfbf1; /* hijau sangat muda */
}
.navbar-nav .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 600;
    font-size: .92rem;
    padding: .55rem 1rem !important;
    border-radius: .5rem;
    transition: background-color .15s ease, color .15s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255,255,255,.12);
}
.navbar-toggler {
    border-color: rgba(255,255,255,.4);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.btn-api-docs {
    background-color: rgba(255,255,255,.15);
    color: #fff; font-weight: 600; font-size: .85rem;
    padding: .5rem 1.1rem; border-radius: .6rem;
    border: 1px solid rgba(255,255,255,.3);
}
.btn-api-docs:hover { background-color: rgba(255,255,255,.28); color: #fff; }

/* Dropdown mega menu navbar */
.navbar .dropdown-menu {
    border: none; border-radius: .8rem; box-shadow: 0 12px 30px rgba(15,23,42,.15);
    padding: .6rem; min-width: 240px; margin-top: .4rem;
}
.navbar .dropdown-header {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
    font-weight: 700; color: #12a76e; padding: .5rem .75rem .25rem;
}
.navbar .dropdown-item {
    font-size: .88rem; padding: .45rem .75rem; border-radius: .5rem; color: #334155;
}
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus { background-color: #ecfdf5; color: #12a76e; }
.navbar .dropdown-toggle::after { vertical-align: .1em; }
@media (max-width: 991.98px) {
    .navbar .dropdown-menu { box-shadow: none; background: rgba(255,255,255,.06); }
    .navbar .dropdown-item { color: rgba(255,255,255,.85); }
    .navbar .dropdown-item:hover { background-color: rgba(255,255,255,.1); color: #fff; }
    .navbar .dropdown-header { color: #6ee7b7; }
}

/* ═══ HERO ═══ */
.hero-section {
    background: linear-gradient(135deg, #1e8a7c 0%, #12a76e 100%);
    color: #fff;
    padding: 3.5rem 0 6rem;
}
.hero-eyebrow {
    text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
    font-weight: 700; color: #6ee7b7; margin-bottom: .6rem;
}
.hero-section h1 {
    font-weight: 800; letter-spacing: -1px; font-size: 2.35rem;
}
.hero-section p.lead {
    color: #d1fae5; max-width: 62ch; font-size: 1.05rem;
}
.hero-cta .btn { margin-right: .6rem; margin-top: .5rem; }

/* ═══ CARDS ═══ */
.card {
    border: 1px solid #eef1f5;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    background: #ffffff;
}
.card-header-title {
    font-weight: 700; font-size: 1rem; color: #0f172a; letter-spacing: -.2px;
}

/* ═══ KARTU STATISTIK ═══ */
.stat-cards-wrapper { margin-top: -4.5rem; position: relative; z-index: 2; }
.stat-card {
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.stat-card-clickable { cursor: pointer; }
.stat-card-clickable:active { transform: translateY(-1px) scale(.99); }

.icon-box {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.icon-box-primary { background-color: #ecfdf5; color: #12a76e; }
.icon-box-purple  { background-color: #faf5ff; color: #9333ea; }
.icon-box-green   { background-color: #f0fdf4; color: #16a34a; }
.icon-box-gold    { background-color: #fffbeb; color: #b45309; }

.stat-label { font-size: .8rem; font-weight: 600; color: #64748b; margin-bottom: .3rem; }
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: #0f172a; }

/* ═══ BADGE ═══ */
.badge-kriteria {
    background-color: #ecfdf5; color: #047857;
    font-size: .72rem; font-weight: 700; letter-spacing: .03em;
    padding: .3rem .6rem; border-radius: .4rem;
}
.badge-status { font-size: .75rem; font-weight: 600; padding: .35em .75em; border-radius: 20px; }
.badge-status-akademik    { background-color: #d1fae5; color: #047857; }
.badge-status-nonakademik { background-color: #fef9c3; color: #854d0e; }

/* ═══ KARTU KRITERIA ═══ */
.kriteria-card { height: 100%; }
.kriteria-card .kriteria-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: #ecfdf5; color: #12a76e;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: .9rem;
}

/* ═══ DOSEN CARD ═══ */
.dosen-card { height: 100%; text-decoration: none; color: inherit; display: block; }
.dosen-photo {
    aspect-ratio: 3/4; background: #eef1f5; border-radius: .8rem .8rem 0 0;
    display: flex; align-items: center; justify-content: center;
    color: #12a76e; font-weight: 800; font-size: 2.2rem; overflow: hidden;
}
.dosen-photo img { width: 100%; height: 100%; object-fit: cover; }
.dosen-card .dosen-body { padding: 1rem 1.1rem; }
.dosen-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: .15rem; color: #0f172a; }
.dosen-card .meta { font-size: .82rem; color: #64748b; }

/* ═══ ITEM LIST ═══ */
.item-list .item-row {
    display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #f1f5f9;
}
.item-list .item-row:last-child { border-bottom: none; }
.item-row .tag {
    flex-shrink: 0; font-size: .72rem; font-weight: 700; color: #12a76e;
    border: 1px solid #a7f3d0; background: #ecfdf5;
    padding: .25rem .6rem; border-radius: .4rem; white-space: nowrap; height: fit-content;
}
.item-row h6 { margin: 0 0 .2rem; font-weight: 700; color: #0f172a; }
.item-row .meta { font-size: .82rem; color: #64748b; }

/* ═══ TABLE ═══ */
.table thead th {
    background-color: #f8fafc; color: #475569; font-weight: 700;
    text-transform: uppercase; font-size: .72rem; letter-spacing: .05em;
    border-bottom: 2px solid #e2e8f0; padding: .9rem 1rem; white-space: nowrap;
}
.table tbody td { padding: .9rem 1rem; vertical-align: middle; color: #334155; }

/* ═══ SECTION HEADER ═══ */
.section-heading { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.section-heading i { font-size: 1.3rem; color: #12a76e; }
.section-heading h2 { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 0; }

/* ═══ FORM ═══ */
.form-label { font-weight: 600; color: #334155; }
.form-control, .form-select {
    border: 1px solid #cbd5e1; border-radius: .6rem; padding: .6rem .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: #6ee7b7; box-shadow: 0 0 0 .25rem rgba(18, 167, 110, 0.2);
}

/* ═══ FOOTER ═══ */
.site-footer {
    background: #0f172a; color: #94a3b8; padding: 2.75rem 0; margin-top: 4rem;
    font-size: .88rem;
}
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: .8rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .copyright {
    border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.25rem;
    font-size: .8rem; text-align: center; color: #64748b;
}

/* ═══ TOMBOL KEMBALI KE ATAS ═══ */
.btn-back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem; width: 46px; height: 46px;
    border-radius: 50%; background: linear-gradient(135deg, #1e8a7c 0%, #12a76e 100%);
    color: #fff; border: none; display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; box-shadow: 0 6px 18px rgba(18, 167, 110, 0.35);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 1050; cursor: pointer;
}
.btn-back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-back-to-top:hover { box-shadow: 0 8px 22px rgba(18, 167, 110, 0.45); transform: translateY(-2px); }

/* ═══ RESPONSIVE / MOBILE-FRIENDLY ═══ */
@media (max-width: 991.98px) {
    .navbar-collapse { margin-top: .75rem; }
    .navbar-nav .nav-link { padding: .65rem 1rem !important; }
}
@media (max-width: 767.98px) {
    .hero-section { padding: 2.5rem 0 5rem; text-align: left; }
    .hero-section h1 { font-size: 1.75rem; }
    .stat-cards-wrapper { margin-top: -3.25rem; }
    .stat-value { font-size: 1.4rem; }
    table.data-table-scroll { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 575.98px) {
    .btn-back-to-top { bottom: 1rem; right: 1rem; width: 42px; height: 42px; font-size: 1rem; }
    .hero-cta .btn { width: 100%; margin-right: 0; }
}

/* =========================================================================
   PANEL ADMIN (DASHBOARD)
   ========================================================================= */
.admin-body { background:#f4f6f9; }
.admin-shell { min-height:100vh; }

.admin-sidebar {
    --bs-offcanvas-width: 270px;
    width: 270px;
    background: linear-gradient(180deg, #1e8a7c 0%, #064e3b 100%); /* hijau tua */
    color:#fff;
    border:none;
}
.admin-sidebar .offcanvas-header { border-bottom:1px solid rgba(255,255,255,.1); }

.admin-brand {
    display:flex; align-items:center; gap:.7rem;
    padding:1.25rem 1.25rem 1rem; color:#fff; text-decoration:none;
    border-bottom:1px solid rgba(255,255,255,.1); margin-bottom:.5rem;
}

.admin-brand .brand-logo {
    width: 50px; 
    height: 50px; 
    border-radius: 50%;
    object-fit: cover;
    background-color: #ffffff; /* Latar putih agar kontras dengan sidebar gelap */
    padding: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.admin-brand .brand-mark {
    width:38px; height:38px; border-radius:10px;
    background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3);
    display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:1rem; flex-shrink:0;
}
.admin-brand .brand-text { font-weight:700; font-size:.95rem; line-height:1.25; }
.admin-brand .brand-text small { display:block; font-weight:500; font-size:.72rem; color:#a7f3d0; }

.admin-nav { padding: 0 .75rem; overflow-y:auto; }
.admin-nav-heading-btn {
    width:100%; display:flex; align-items:center; justify-content:space-between;
    background:transparent; border:none; text-align:left;
    font-size:.78rem; text-transform:uppercase; letter-spacing:.04em;
    color:#6ee7b7; font-weight:700; padding:.85rem .5rem .5rem;
    cursor:pointer;
}
.admin-nav-heading-btn:hover { color:#fff; }
.admin-nav-heading-btn span { display:flex; align-items:center; gap:.5rem; }
.admin-nav-chevron { transition: transform .2s ease; font-size:.7rem; }
.admin-nav-heading-btn[aria-expanded="true"] .admin-nav-chevron { transform: rotate(180deg); }
.admin-nav-link {
    display:flex; align-items:center; gap:.6rem;
    color:rgba(255,255,255,.85); text-decoration:none;
    padding:.55rem .6rem; border-radius:.5rem; font-size:.88rem; font-weight:500;
    margin-bottom:1px;
}
.admin-nav-link:hover { background:rgba(255,255,255,.08); color:#fff; }
.admin-nav-link.active { background:rgba(255,255,255,.16); color:#fff; font-weight:700; }
.admin-nav-sublink { padding-left:1.5rem; font-size:.85rem; font-weight:500; }
.admin-nav-section { margin-bottom:.25rem; }

.admin-nav-footer {
    padding: .75rem; border-top:1px solid rgba(255,255,255,.1); margin-top:.5rem;
}
.admin-nav-footer a, .admin-nav-footer button {
    display:flex; align-items:center; gap:.6rem; color:rgba(255,255,255,.85);
    text-decoration:none; padding:.55rem .6rem; border-radius:.5rem;
    font-size:.85rem; font-weight:600; background:transparent; border:none;
}
.admin-nav-footer a:hover, .admin-nav-footer button:hover { background:rgba(255,255,255,.08); color:#fff; }

.admin-content { min-width:0; }

.admin-topbar {
    background:#fff; border-bottom:1px solid #e2e8f0;
    padding:.85rem 1.25rem; display:flex; align-items:center; gap:1rem;
    position:sticky; top:0; z-index:1020;
}
.admin-topbar-title { font-weight:700; color:#0f172a; flex-grow:1; font-size:1.05rem; }
.admin-topbar-user { font-size:.85rem; color:#64748b; font-weight:600; white-space:nowrap; }
.admin-burger { border:1px solid #e2e8f0; }

.admin-main { padding: 1.25rem; }
@media (min-width: 768px) { .admin-main { padding: 2rem; } }

.admin-quicklink {
    display:flex; align-items:center; gap:.4rem; color:#334155; text-decoration:none;
    font-size:.87rem; padding:.3rem 0;
}
.admin-quicklink:hover { color:#12a76e; }
.admin-quicklink i { font-size:.7rem; color:#94a3b8; }

/* Form generik dashboard */
.dashboard-form input[type=text],
.dashboard-form input[type=number],
.dashboard-form input[type=email],
.dashboard-form input[type=url],
.dashboard-form input[type=date],
.dashboard-form input[type=datetime-local],
.dashboard-form input[type=file],
.dashboard-form input[type=password],
.dashboard-form select,
.dashboard-form textarea {
    width:100%; padding:.55rem .8rem; border:1px solid #cbd5e1;
    border-radius:.5rem; font-family:inherit; font-size:.92rem; background:#fff;
}
.dashboard-form select:focus, .dashboard-form input:focus, .dashboard-form textarea:focus {
    outline:none; border-color:#6ee7b7; box-shadow:0 0 0 .2rem rgba(18, 167, 110, 0.18);
}
.dashboard-form select[multiple] { min-height:130px; }
.dashboard-form input[type=checkbox] { width:auto; margin-right:.4rem; }
.dashboard-form textarea { min-height:110px; }

/* Halaman login admin */
.login-body { background: linear-gradient(135deg, #1e8a7c 0%, #12a76e 100%); min-height:100vh; }
.login-wrapper { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:1.5rem; }
.login-card { width:100%; max-width:420px; border:none; border-radius:1.1rem; }
.brand-mark-lg {
    width:56px; height:56px; border-radius:14px;
    background: linear-gradient(135deg, #1e8a7c, #12a76e); color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:1.4rem; margin:0 auto 1rem;
}

@media (max-width: 991.98px) {
    .admin-topbar-title { font-size:.95rem; }
}

/* =========================================================================
   KOMPONEN CMS
   ========================================================================= */

/* Hero carousel */
.hero-carousel { position:relative; }
.hero-carousel .carousel-item { height: 420px; background-size: cover; background-position: center; }
.hero-carousel .carousel-item::after {
    content:""; position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(15,23,42,.15) 0%, rgba(15,23,42,.75) 100%);
}
.hero-carousel .carousel-caption { z-index:2; text-align:left; left:5%; right:5%; bottom:2.5rem; }
.hero-carousel .carousel-caption h2 { font-weight:800; font-size:1.9rem; }
@media (max-width: 767.98px) {
    .hero-carousel .carousel-item { height: 280px; }
    .hero-carousel .carousel-caption h2 { font-size:1.3rem; }
}

/* Kelompok keilmuan */
.keilmuan-card { text-align:center; height:100%; }
.keilmuan-icon {
    width:64px; height:64px; border-radius:16px; margin:0 auto 1rem;
    background: linear-gradient(135deg, #1e8a7c, #12a76e); color:#fff;
    display:flex; align-items:center; justify-content:center; font-size:1.6rem;
}

/* Berita */
.berita-card { height:100%; overflow:hidden; }
.berita-thumb { aspect-ratio:16/10; overflow:hidden; background:#eef1f5; }
.berita-thumb img { width:100%; height:100%; object-fit:cover; }
.berita-body { padding:1.1rem 1.25rem; }
.berita-meta { font-size:.78rem; color:#94a3b8; margin-bottom:.4rem; }
.berita-title { font-size:1rem; font-weight:700; color:#0f172a; line-height:1.35; }
.berita-title a { color:inherit; text-decoration:none; }
.berita-title a:hover { color:#12a76e; }
.berita-ringkasan { font-size:.87rem; color:#64748b; }

/* Agenda & Informasi list */
.agenda-item { display:flex; gap:1rem; padding:1rem 0; border-bottom:1px solid #f1f5f9; }
.agenda-item:last-child { border-bottom:none; }
.agenda-tanggal {
    flex-shrink:0; width:64px; text-align:center; background:#ecfdf5; border-radius:.6rem;
    padding:.5rem .3rem; color:#12a76e;
}
.agenda-tanggal .hari { font-size:1.25rem; font-weight:800; line-height:1; display:block; }
.agenda-tanggal .bulan { font-size:.7rem; font-weight:700; text-transform:uppercase; }

/* Galeri */
.galeri-item { position:relative; border-radius:.8rem; overflow:hidden; aspect-ratio:1; display:block; }
.galeri-item img { width:100%; height:100%; object-fit:cover; transition: transform .3s ease; }
.galeri-item:hover img { transform: scale(1.06); }
.galeri-caption {
    position:absolute; left:0; right:0; bottom:0; padding:.6rem .75rem;
    background: linear-gradient(180deg, transparent, rgba(15,23,42,.85));
    color:#fff; font-size:.78rem; font-weight:600;
}

.prose { font-size:1rem; line-height:1.75; color:#334155; }
.prose img { max-width:100%; height:auto; border-radius:.6rem; }
.berita-konten { font-size:1.02rem; line-height:1.8; color:#334155; }
.berita-konten img { max-width:100%; height:auto; border-radius:.6rem; margin:1rem 0; }

/* ═══ OFFCANVAS NAVBAR (Mobile Sidebar Styling) ═══ */
@media (max-width: 991.98px) {
    .offcanvas-navbar {
        background: linear-gradient(135deg, #1e8a7c 0%, #12a76e 100%) !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    .offcanvas-navbar .offcanvas-header {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1.25rem 1.5rem;
    }
    .offcanvas-navbar .offcanvas-body {
        padding: 1rem 1.5rem;
    }
    .navbar .dropdown-menu {
        background: rgba(255, 255, 255, 0.05);
        border-left: 2px solid rgba(255,255,255,0.2);
        border-radius: 0;
        margin-left: 0.5rem;
    }
    .offcanvas {
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
}

/* ═══ PERBAIKAN ANIMASI HAMBURGER MENU (TOGGLER) ═══ */
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}
.navbar-toggler {
    -webkit-tap-highlight-color: transparent;
}
.navbar-brand .brand-text {
    white-space: nowrap;
}
.navbar .container {
    align-items: center !important;
}