/* ==========================================================================
   BP3F FMIPA UNRAM - Institutional Portal Master Stylesheet
   Clean, Premium, 100% Pixel-Perfect & Fully Responsive Layout
   ========================================================================== */

#dark-toggle-btn,
.theme-toggle-floating {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

:root {
    --color-topbar: #131633;
    --color-navy: #0c1938;
    --color-navy-hover: #172a5a;
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-bg-light: #f8fafc;
    --color-bg-main: #ffffff;
    --color-card-bg: #ffffff;
    --color-card-border: #e2e8f0;
    --color-border: #e2e8f0;
    
    --color-purple: #8b5cf6;
    --color-blue: #3b82f6;
    --color-emerald: #10b981;
    --color-amber: #f59e0b;
    --color-scholar: #4285f4;

    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px rgba(12, 25, 56, 0.08);
}

/* MOTION REACT / FRAMER STYLE SPRING ANIMATION TOKENS & GESTURES */
@keyframes motionFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes motionSpringScale {
    0% { transform: scale(0.92); opacity: 0; }
    60% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* 1. Framer Motion 'whileInView' Scroll Reveal Class */
.motion-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.motion-reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 2. Framer Motion 'whileTap' Gesture Physics */
button:active, .btn-primary:active, .btn-emerald:active, .btn-navy:active, .kpi-card:active, .feature-card:active {
    transform: scale(0.95) translateY(2px) !important;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 3. Framer Motion 'whileHover' Spring Elevation */
.hero-title, .section-title, .news-card, .feature-card, .widget-card, .match-card, .white-card {
    animation: motionFadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-card, .news-card, .widget-card, .match-card, .white-card, .kpi-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.feature-card:hover, .news-card:hover, .widget-card:hover, .white-card:hover {
    transform: translateY(-7px) scale(1.018);
    box-shadow: 0 22px 40px -12px rgba(30, 58, 138, 0.18);
}

/* 4. Motion Stagger Delay Utilities */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* 5. Framer Motion Skeleton Loading Shimmer */
@keyframes motionShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.motion-skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: motionShimmer 1.5s infinite;
    border-radius: 8px;
}

/* 6. Framer Motion Floating Ambient Mesh Orbs */
@keyframes motionFloatingOrb {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-15px) rotate(180deg) scale(1.08); }
}

.motion-floating-orb {
    animation: motionFloatingOrb 12s ease-in-out infinite;
    will-change: transform;
}

/* 7. Magnetic Button Transition Physics */
.motion-magnetic {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   MASTER COMPREHENSIVE DARK MODE SYSTEM (100% COVERAGE FOR ALL 11 PAGES)
   ========================================================================== */
body.dark-theme {
    --color-navy: #60a5fa !important;
    --color-navy-hover: #93c5fd !important;
    --color-text-main: #f8fafc !important;
    --color-text-muted: #cbd5e1 !important;
    --color-bg-light: #0f172a !important;
    --color-border: #334155 !important;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    background-color: #0b0f19 !important;
    color: #f8fafc !important;
}

/* 1. Header, Topbar & Navbar Dark Mode */
body.dark-theme .top-bar {
    background-color: #030712 !important;
    border-bottom: 1px solid #1e293b !important;
}

body.dark-theme .main-navbar {
    background-color: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}

body.dark-theme .brand-title-main {
    color: #ffffff !important;
}

body.dark-theme .brand-title-sub {
    color: #cbd5e1 !important;
}

body.dark-theme .nav-link {
    color: #f8fafc !important;
}

/* 2. Hero Section, Page Headers & Section Backgrounds */
body.dark-theme .hero-section,
body.dark-theme main,
body.dark-theme section,
body.dark-theme .page-header,
body.dark-theme .profile-page-wrapper,
body.dark-theme .content-wrapper,
body.dark-theme .main-container,
body.dark-theme .section-container,
body.dark-theme .section-container.bg-white,
body.dark-theme .section-container.bg-light,
body.dark-theme .bg-white,
body.dark-theme .bg-light {
    background-color: #0b0f19 !important;
    border-color: #1e293b !important;
}

/* 3. ALL Cards, Boxes & White Containers */
body.dark-theme .white-card,
body.dark-theme .glass-card,
body.dark-theme .berita-card,
body.dark-theme .news-card,
body.dark-theme .panduan-card,
body.dark-theme .galeri-card,
body.dark-theme .galeri-card-body,
body.dark-theme .card,
body.dark-theme .feature-card,
body.dark-theme .service-card,
body.dark-theme .analytics-card,
body.dark-theme .analytics-toolbar,
body.dark-theme .match-card,
body.dark-theme .classifier-box,
body.dark-theme .profile-desc-card,
body.dark-theme .chart-box-wrapper,
body.dark-theme .duties-card,
body.dark-theme .repo-table-wrapper,
body.dark-theme .kontak-card,
body.dark-theme .tab-pane,
body.dark-theme .dosen-profile-card,
body.dark-theme .filter-box,
body.dark-theme .brush-image-wrapper,
body.dark-theme .kpi-card,
body.dark-theme .team-card,
body.dark-theme [class*="card"],
body.dark-theme div[style*="background-color: #ffffff"],
body.dark-theme div[style*="background-color:#ffffff"],
body.dark-theme div[style*="background: #ffffff"],
body.dark-theme div[style*="background:#ffffff"],
body.dark-theme div[style*="background-color: white"],
body.dark-theme div[style*="background: white"],
body.dark-theme div[style*="background: #f8fafc"],
body.dark-theme div[style*="background-color: #f8fafc"],
body.dark-theme div[style*="background: #f1f5f9"],
body.dark-theme div[style*="background-color: #f1f5f9"] {
    background-color: #1e293b !important;
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
}

/* 3b. Inner Components & Sub-boxes in Dark Mode */
body.dark-theme .empty-placeholder {
    background-color: #0f172a !important;
    border: 1px dashed #334155 !important;
    color: #94a3b8 !important;
}

body.dark-theme .empty-placeholder i,
body.dark-theme .empty-placeholder p {
    color: #94a3b8 !important;
}

body.dark-theme .confidence-bar {
    background-color: #0f172a !important;
}

body.dark-theme .card-title-bar {
    border-bottom: 1px solid #334155 !important;
}

body.dark-theme .scholar-badge-link,
body.dark-theme .scholar-action-btn {
    background-color: #0f172a !important;
    color: #60a5fa !important;
    border: 1px solid #334155 !important;
}

body.dark-theme .match-score-badge {
    background-color: rgba(139, 92, 246, 0.25) !important;
    color: #c084fc !important;
}

/* 4. ALL Headings & Card Titles in Dark Mode */
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4, body.dark-theme h5, body.dark-theme h6,
body.dark-theme .section-title,
body.dark-theme .berita-title,
body.dark-theme .news-title,
body.dark-theme .card-title,
body.dark-theme .hero-title,
body.dark-theme .profile-main-title,
body.dark-theme .team-name,
body.dark-theme .duties-title,
body.dark-theme .analytics-header-title,
body.dark-theme .analytics-card-title,
body.dark-theme .kpi-value,
body.dark-theme .match-author,
body.dark-theme .footer-title,
body.dark-theme .footer-heading,
body.dark-theme .card-header,
body.dark-theme .service-title,
body.dark-theme .feature-card h3,
body.dark-theme .feature-link {
    color: #ffffff !important;
}

/* 5. ALL Paragraphs, Labels & Descriptions in Dark Mode */
body.dark-theme p,
body.dark-theme label,
body.dark-theme .form-label,
body.dark-theme .berita-desc,
body.dark-theme .card-desc,
body.dark-theme .news-desc,
body.dark-theme .news-excerpt,
body.dark-theme .section-sub,
body.dark-theme .duties-list,
body.dark-theme .kpi-label,
body.dark-theme .kpi-sub,
body.dark-theme .footer-text,
body.dark-theme .match-abstract,
body.dark-theme .match-prodi,
body.dark-theme span:not(.badge-kategori):not(.tag-pill):not(.rirn-badge):not(.badge-ai-pill) {
    color: #cbd5e1 !important;
}

/* 6. Dropdown Menu Dark Mode */
body.dark-theme .dropdown-menu {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
}

body.dark-theme .dropdown-menu a {
    color: #e2e8f0 !important;
}

body.dark-theme .dropdown-menu a:hover {
    background-color: #1e293b !important;
    color: #8b5cf6 !important;
}

/* 7. Mobile Drawer Dark Mode */
body.dark-theme .mobile-drawer {
    background-color: #0f172a !important;
    border-left: 1px solid #1e293b !important;
}

body.dark-theme .mobile-drawer-header {
    background-color: #070a12 !important;
    border-bottom: 1px solid #1e293b !important;
}

body.dark-theme .mobile-drawer-title,
body.dark-theme .mobile-drawer-close {
    color: #ffffff !important;
}

body.dark-theme .mobile-drawer-links a {
    color: #f8fafc !important;
}

body.dark-theme .mobile-drawer-links a:hover,
body.dark-theme .mobile-drawer-links a.active {
    background-color: #1e293b !important;
    color: #8b5cf6 !important;
}

body.dark-theme .mobile-dropdown-title {
    color: #94a3b8 !important;
}

/* 8. Form Inputs, Selects & Textareas Dark Mode */
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme .form-control,
body.dark-theme .form-select {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #475569 !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #94a3b8 !important;
}

/* 9. Links & Action Buttons in Dark Mode */
body.dark-theme a:not(.btn):not(.btn-download-pill):not(.top-icon):not(.brand-logo):not(.nav-link) {
    color: #60a5fa !important;
}

body.dark-theme .footer-links a {
    color: #cbd5e1 !important;
}

body.dark-theme .footer-links a:hover {
    color: #8b5cf6 !important;
}

/* 10. Table Dark Mode Fixes */
body.dark-theme table {
    background-color: #0f172a !important;
}

body.dark-theme th {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border-bottom: 2px solid #334155 !important;
}

body.dark-theme td {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-bottom: 1px solid #1e293b !important;
}

/* 11. Footer Dark Mode */
body.dark-theme .site-footer {
    background-color: #030712 !important;
    border-top: 1px solid #1e293b !important;
}

/* Dark Mode Overrides for Download Page */
body.dark-theme .doc-header-title,
body.dark-theme .doc-section-subtitle {
    color: #ffffff !important;
}

body.dark-theme .doc-row {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

body.dark-theme .doc-row:hover {
    background-color: #334155 !important;
    border-color: #475569 !important;
}

body.dark-theme .doc-title-text {
    color: #f8fafc !important;
}

body.dark-theme .doc-title-text i {
    color: #8b5cf6 !important;
}

body.dark-theme .btn-download-pill {
    background-color: #8b5cf6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
}

body.dark-theme .btn-download-pill:hover {
    background-color: #7c3aed !important;
    transform: translateY(-2px);
}

/* Floating Dark Mode Toggle Button (DISABLED PER USER REQUEST) */
.theme-toggle-floating {
    display: none !important;
}

body.dark-theme .theme-toggle-floating {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000000;
}

/* BASE RESET */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background: radial-gradient(circle at 50% -20%, #e0e7ff 0%, #f1f5f9 45%, #f8fafc 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 1. TOP BAR */
.top-bar {
    background-color: var(--color-topbar);
    color: #ffffff;
    padding: 0.6rem 0;
    font-size: 0.82rem;
    font-weight: 500;
    width: 100%;
}

.top-bar-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    letter-spacing: 0.2px;
}

.top-bar-left span {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.top-icon {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    transition: opacity 0.2s ease;
}

.top-icon:hover {
    opacity: 0.8;
}

/* 2. MAIN NAVBAR HEADER */
.main-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.85rem 0;
    width: 100%;
}

.nav-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.unram-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.brand-title-group {
    display: flex;
    flex-direction: column;
}

.brand-title-main {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.brand-title-sub {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* DESKTOP NAV MENU */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-navy);
}

.nav-link.highlight-luaran {
    color: var(--color-navy);
    font-weight: 700;
}

.drop-icon {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

/* DROPDOWN MENU FIX */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: var(--shadow-card);
    border-radius: 10px;
    border: 1px solid var(--color-border);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.nav-dropdown.dropdown-right .dropdown-menu,
.nav-menu > .nav-dropdown:nth-last-child(2) .dropdown-menu {
    left: auto;
    right: 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-navy);
}

/* HAMBURGER TOGGLE BUTTON */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-navy);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}

/* MOBILE DRAWER OVERLAY */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 25, 56, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -310px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 2100;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.2rem;
}

.mobile-drawer-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-drawer-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.2s ease;
}

.mobile-drawer-links a:hover, .mobile-drawer-links a.active {
    background-color: var(--color-bg-light);
    color: var(--color-navy);
}

.mobile-dropdown-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    padding-left: 0.8rem;
}

/* 3. HERO SECTION */
.hero-section {
    background-color: #f8fafc;
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
}

.hero-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-left {
    max-width: 540px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.25;
    margin-bottom: 2.2rem;
    letter-spacing: -0.5px;
}

.btn-cari-jurnal {
    display: inline-block;
    background-color: var(--color-navy);
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 2.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(12, 25, 56, 0.2);
}

.btn-cari-jurnal:hover {
    background-color: var(--color-navy-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 25, 56, 0.3);
}

.hero-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.brush-image-wrapper {
    width: 100%;
    max-width: 580px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(12, 25, 56, 0.1);
    background-color: #ffffff;
}

.brush-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.brush-image-wrapper:hover .brush-image {
    transform: scale(1.02);
}

/* PAGE BANNER FOR SUBPAGES */
.page-banner {
    background: linear-gradient(135deg, var(--color-navy), #172a5a);
    color: #ffffff;
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.page-banner-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-banner h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.page-banner p {
    opacity: 0.88;
    font-size: 0.98rem;
    max-width: 800px;
}

/* 4. SECTIONS COMMON */
.section-container {
    padding: 4.5rem 0;
    width: 100%;
}

.section-container.bg-white { background-color: var(--color-bg-main, #ffffff); }
.section-container.bg-light { 
    background-color: var(--color-bg-light, #f8fafc); 
    border-top: 1px solid var(--color-border); 
    border-bottom: 1px solid var(--color-border); 
}

.section-header {
    max-width: 800px;
    margin-bottom: 2.8rem;
}

.section-header.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 0.4rem;
}

.section-sub {
    color: var(--color-text-muted);
    font-size: 0.98rem;
}

/* 5. BERITA TERBARU GRID FIX */
.news-grid {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background-color: var(--color-card-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-card-border, var(--color-border));
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.news-img-box {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(12, 25, 56, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.news-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-blue);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.news-title a {
    text-decoration: none;
    color: var(--color-navy);
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: var(--color-blue);
}

.news-excerpt {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* 6. FEATURE GRID */
.feature-grid {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--color-card-bg, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--color-card-border, var(--color-border));
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-navy);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.feature-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--color-purple); }
.feature-icon.emerald { background: rgba(16, 185, 129, 0.1); color: var(--color-emerald); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--color-blue); }
.feature-icon.amber { background: rgba(245, 158, 11, 0.1); color: var(--color-amber); }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
    flex: 1;
}

.feature-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-navy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.feature-link:hover {
    color: var(--color-blue);
}

/* ANALYTICS DASHBOARD WIDGET STYLES & INTERACTIVE CONTROLS */
.dashboard-wrapper {
    max-width: 1250px;
    margin: 0 auto;
}

.mb-4 { margin-bottom: 2rem !important; }

/* TOOLBAR CONTROL BAR */
.analytics-toolbar {
    background-color: var(--color-card-bg, #ffffff);
    border: 1px solid var(--color-card-border, var(--color-border));
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.toolbar-group label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-navy);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.toolbar-select {
    width: auto;
    min-width: 180px;
    padding: 0.5rem 0.8rem;
    font-size: 0.86rem;
}

.btn-navy.sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.86rem;
    border-radius: 6px;
}

/* KPI TREND BADGES & INTERACTIVE CARDS */
.kpi-card.interactive {
    cursor: pointer;
    transition: all 0.25s ease;
}

.kpi-card.interactive:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-navy);
}

.kpi-header-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.trend-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-badge.positive {
    background-color: rgba(16, 185, 129, 0.12);
    color: #059669;
}

/* GLOW TOP CARDS */
.widget-card {
    background-color: var(--color-card-bg, #ffffff);
    border-radius: 14px;
    border: 1px solid var(--color-card-border, var(--color-border));
    box-shadow: var(--shadow-soft);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
}

.widget-card.glow-top-purple::before { background: linear-gradient(90deg, var(--color-purple), #c084fc); }
.widget-card.glow-top-emerald::before { background: linear-gradient(90deg, var(--color-emerald), #34d399); }
.widget-card.glow-top-blue::before { background: linear-gradient(90deg, var(--color-blue), #60a5fa); }
.widget-card.glow-top-amber::before { background: linear-gradient(90deg, var(--color-amber), #fbbf24); }

.widget-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.widget-card.full-width {
    grid-column: 1 / -1;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--color-border);
}

.widget-header h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-blue);
    background-color: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.chart-box {
    position: relative;
    height: 280px;
    width: 100%;
}

/* HEATMAP TABLE MATRIX */
.heatmap-matrix-wrapper {
    overflow-x: auto;
    width: 100%;
}

.heatmap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.heatmap-table th {
    background-color: var(--color-bg-light);
    color: var(--color-navy);
    font-weight: 700;
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 2px solid var(--color-border);
}

.heatmap-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

.hp-high { background-color: rgba(16, 185, 129, 0.15); color: #059669; }
.hp-mid { background-color: rgba(59, 130, 246, 0.15); color: #2563eb; }
.hp-low { background-color: rgba(139, 92, 246, 0.15); color: #7c3aed; }

/* PICTOGRAM BOX */
.pictogram-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

.pictogram-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: var(--color-bg-light);
    border-radius: 8px;
}

.pic-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy);
}

.icons-strip {
    display: flex;
    gap: 0.5rem;
    font-size: 1.1rem;
}

/* WHITE CARD & FORMS */
.white-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    padding: 1.8rem;
}

body.dark-theme .white-card {
    background-color: #1e293b !important;
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

.white-card.max-1250 {
    max-width: 1250px;
    margin: 0 auto;
}

.card-title-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--color-border);
}

.card-title-bar.space-between {
    justify-content: space-between;
}

.card-title-bar h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-ai-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--color-purple);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.6rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--color-navy);
}

.btn-navy {
    background-color: var(--color-navy);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}

.btn-navy:hover { background-color: var(--color-navy-hover); }
.btn-navy.block { width: 100%; }

.btn-emerald {
    background-color: var(--color-emerald);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}

.btn-emerald:hover { background-color: #059669; }
.btn-emerald.block { width: 100%; }

.grid-matchmaker-box, .grid-2col {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* GOOGLE SCHOLAR STYLES */
.text-scholar { color: var(--color-scholar); }

.scholar-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-scholar);
    background-color: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.25);
    padding: 2px 8px;
    border-radius: 12px;
    text-decoration: none;
    margin-left: 0.4rem;
}

.scholar-badge-link:hover {
    background-color: var(--color-scholar);
    color: #ffffff;
}

.scholar-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-scholar);
    background-color: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
}

.scholar-action-btn:hover {
    background-color: var(--color-scholar);
    color: #ffffff;
}

.scholar-action-btn.large {
    padding: 8px 16px;
    font-size: 0.88rem;
    margin-top: 0.6rem;
}

.table-scholar-hyperlink {
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.table-scholar-hyperlink:hover {
    color: var(--color-scholar);
    text-decoration: underline;
}

.scholar-mini-icon {
    font-size: 0.7rem;
    color: var(--color-scholar);
}

/* MATCHMAKER CARDS */
.match-card {
    background-color: var(--color-bg-light);
    border-radius: 10px;
    border: 1px solid var(--color-border);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.match-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.match-prodi {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.match-score-badge {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.match-abstract {
    font-size: 0.85rem;
    color: var(--color-text-main);
    margin-bottom: 0.8rem;
}

.match-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.tag-pill {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.tag-highlight {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--color-purple);
}

/* KPI CARDS & TABLES */
.kpi-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.kpi-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.kpi-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--color-purple); }
.kpi-icon.cyan { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.kpi-icon.emerald { background: rgba(16, 185, 129, 0.1); color: var(--color-emerald); }
.kpi-icon.amber { background: rgba(245, 158, 11, 0.1); color: var(--color-amber); }

.kpi-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-navy);
    display: block;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.chart-box, .chart-wrapper {
    position: relative;
    min-height: 280px;
    height: 280px;
    width: 100%;
}

.chart-box canvas, .chart-wrapper canvas {
    max-height: 280px !important;
}

.table-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.search-input {
    padding-left: 2.2rem;
}

.filter-select-group {
    display: flex;
    gap: 0.8rem;
}

.inline-select {
    width: auto;
    min-width: 160px;
}

.table-responsive {
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.styled-table th {
    background-color: var(--color-bg-light);
    color: var(--color-navy);
    font-weight: 700;
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid var(--color-border);
}

.styled-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.badge-status-online {
    font-size: 0.75rem;
    color: var(--color-emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.empty-placeholder {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-text-muted);
}

.empty-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    opacity: 0.4;
}

/* FOOTER STYLES FIX */
.site-footer {
    background-color: var(--color-navy);
    color: #ffffff;
    padding: 4rem 0 1.8rem 0;
    width: 100%;
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr;
    gap: 3.5rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.footer-logo-img {
    height: 55px !important;
    width: auto !important;
    max-height: 55px !important;
    object-fit: contain !important;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.2;
}

.footer-sub {
    font-size: 0.8rem;
    opacity: 0.75;
    color: #ffffff;
}

.footer-text {
    font-size: 0.88rem;
    opacity: 0.82;
    line-height: 1.6;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #ffffff;
    opacity: 0.8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1250px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.75;
    color: #ffffff;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid, .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-left {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-right {
        justify-content: center;
    }

    .brush-image-wrapper {
        max-width: 100%;
    }

    .brush-image {
        height: 300px;
    }

    .grid-matchmaker-box, .grid-2col, .analytics-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid, .kpi-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    .top-bar-left span {
        white-space: normal !important;
        display: block;
        text-align: center;
        font-size: 0.76rem;
        line-height: 1.3;
    }

    .brand-title-main {
        font-size: 0.75rem;
    }

    .brand-title-sub {
        font-size: 0.65rem;
    }

    .analytics-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .table-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .filter-select-group {
        flex-direction: column;
        width: 100%;
    }

    .filter-select-group select {
        width: 100% !important;
    }

    .doc-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.8rem;
        border-radius: 16px !important;
        padding: 1.1rem 1.2rem !important;
    }

    .btn-download-pill {
        width: 100%;
        text-align: center;
    }

    .team-grid-anggota {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .theme-toggle-floating {
        bottom: 15px !important;
        right: 15px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }
}
/* ==========================================================================
   MASTER PERMANENT DARK MODE SYSTEM (100% COVERAGE & INLINE OVERRIDES)
   ========================================================================== */

body.dark-theme {
    --color-navy: #60a5fa !important;
    --color-navy-hover: #93c5fd !important;
    --color-text-main: #f8fafc !important;
    --color-text-muted: #cbd5e1 !important;
    --color-bg-light: #0f172a !important;
    --color-bg-main: #0b0f19 !important;
    --color-card-bg: #1e293b !important;
    --color-card-border: #334155 !important;
    --color-border: #334155 !important;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    background-color: #0b0f19 !important;
    color: #f8fafc !important;
}

/* 1. All Base Structural Elements */
body.dark-theme,
body.dark-theme main,
body.dark-theme section,
body.dark-theme header.main-navbar,
body.dark-theme .top-bar,
body.dark-theme .hero-section,
body.dark-theme .page-banner,
body.dark-theme .section-container,
body.dark-theme .content-wrapper,
body.dark-theme .main-container,
body.dark-theme .bg-white,
body.dark-theme .bg-light,
body.dark-theme .profile-page-wrapper {
    background-color: #0b0f19 !important;
    color: #f8fafc !important;
}

body.dark-theme .main-navbar,
body.dark-theme .dropdown-menu,
body.dark-theme .mobile-drawer {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

/* 2. All Card Containers & White Boxes Across All 11 Pages */
body.dark-theme .white-card,
body.dark-theme .glass-card,
body.dark-theme .card,
body.dark-theme .widget-card,
body.dark-theme .feature-card,
body.dark-theme .service-card,
body.dark-theme .news-card,
body.dark-theme .berita-card,
body.dark-theme .panduan-card,
body.dark-theme .galeri-card,
body.dark-theme .galeri-card-body,
body.dark-theme .analytics-card,
body.dark-theme .analytics-toolbar,
body.dark-theme .match-card,
body.dark-theme .classifier-box,
body.dark-theme .profile-desc-card,
body.dark-theme .chart-box-wrapper,
body.dark-theme .duties-card,
body.dark-theme .repo-table-wrapper,
body.dark-theme .kontak-card,
body.dark-theme .tab-pane,
body.dark-theme .dosen-profile-card,
body.dark-theme .filter-box,
body.dark-theme .brush-image-wrapper,
body.dark-theme .kpi-card,
body.dark-theme .team-card,
body.dark-theme .card-white-bg,
body.dark-theme .stat-card,
body.dark-theme .search-container,
body.dark-theme .form-box,
body.dark-theme .white-box,
body.dark-theme [class*="card"] {
    background-color: #1e293b !important;
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
}

/* 3. Sub-boxes, Inner Placeholder Cards & Badges */
body.dark-theme .empty-placeholder {
    background-color: #0f172a !important;
    background: #0f172a !important;
    border: 1px dashed #334155 !important;
    color: #94a3b8 !important;
}

body.dark-theme .empty-placeholder i,
body.dark-theme .empty-placeholder p {
    color: #94a3b8 !important;
}

body.dark-theme .confidence-bar {
    background-color: #0f172a !important;
}

body.dark-theme .card-title-bar {
    border-bottom: 1px solid #334155 !important;
    background: transparent !important;
}

body.dark-theme .pictogram-row {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

body.dark-theme .pic-label {
    color: #93c5fd !important;
}

body.dark-theme .scholar-badge-link,
body.dark-theme .scholar-action-btn {
    background-color: #0f172a !important;
    color: #60a5fa !important;
    border: 1px solid #334155 !important;
}

body.dark-theme .match-score-badge {
    background-color: rgba(139, 92, 246, 0.25) !important;
    color: #c084fc !important;
}

/* 4. Headings & Titles in Dark Mode */
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4, body.dark-theme h5, body.dark-theme h6,
body.dark-theme .section-title,
body.dark-theme .berita-title,
body.dark-theme .news-title,
body.dark-theme .card-title,
body.dark-theme .hero-title,
body.dark-theme .profile-main-title,
body.dark-theme .team-name,
body.dark-theme .duties-title,
body.dark-theme .analytics-header-title,
body.dark-theme .analytics-card-title,
body.dark-theme .kpi-value,
body.dark-theme .match-author,
body.dark-theme .footer-title,
body.dark-theme .footer-heading,
body.dark-theme .card-header,
body.dark-theme .service-title,
body.dark-theme .feature-card h3,
body.dark-theme .feature-link {
    color: #ffffff !important;
}

/* 5. Paragraphs, Labels & Inputs */
body.dark-theme p,
body.dark-theme label,
body.dark-theme .form-label,
body.dark-theme .berita-desc,
body.dark-theme .card-desc,
body.dark-theme .news-desc,
body.dark-theme .news-excerpt,
body.dark-theme .section-sub,
body.dark-theme .duties-list,
body.dark-theme .kpi-label,
body.dark-theme .kpi-sub,
body.dark-theme .footer-text,
body.dark-theme .match-abstract,
body.dark-theme .match-prodi,
body.dark-theme span:not(.badge-kategori):not(.tag-pill):not(.rirn-badge):not(.badge-ai-pill) {
    color: #cbd5e1 !important;
}

/* 6. Form Controls & Inputs */
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme .form-control,
body.dark-theme .form-select {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #475569 !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #94a3b8 !important;
}

/* 7. Tables & Footer */
body.dark-theme table {
    background-color: #0f172a !important;
}

body.dark-theme th {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border-bottom: 2px solid #334155 !important;
}

body.dark-theme td {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-bottom: 1px solid #1e293b !important;
}

body.dark-theme .site-footer {
    background-color: #030712 !important;
    border-top: 1px solid #1e293b !important;
}

/* PERMANENT DISABLE DARK MODE BUTTON */
#dark-toggle-btn,
.theme-toggle-floating {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
