/* ==========================================================================
   CSS DESIGN SYSTEM - PORTAL KTM UNIVERSITAS TEKNOLOGI BANDUNG (UTB)
   Aesthetic: Premium Academic + Modern Professional (Glassmorphism & Gradients)
   ========================================================================== */

/* 1. Global Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

:root {
    /* Color Palette */
    --primary-deep: #0D1B2A;       /* Dark academic navy */
    --primary-medium: #1B263B;     /* Slate academic blue */
    --primary-light: #415A77;      /* Muted steel blue */
    --accent-gold: #E0A96D;        /* Premium gold border & highlight */
    --accent-gold-hover: #D49B5E;
    --accent-green: #38B000;       /* Academic crest green */
    --accent-green-light: #70E000;
    --accent-red: #D90429;
    --bg-light: #F4F6F9;           /* Pure academic background */
    --bg-card: #FFFFFF;
    --text-dark: #1E293B;          /* Slate-800 for high readability */
    --text-muted: #64748B;         /* Slate-500 */
    --border-color: #E2E8F0;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(13, 27, 42, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(13, 27, 42, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   2. Halaman Login Modern Transisi (Section 1)
   ========================================================================== */
.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
    overflow: hidden;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
}

.login-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* Animated floating back-shapes */
.login-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-gold);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-green);
    bottom: -150px;
    right: -100px;
    animation-delay: 4s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.2); }
}

/* Glassmorphism Login Card */
.login-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    width: 450px;
    padding: 45px;
    box-shadow: var(--shadow-glass);
    text-align: center;
    color: #FFF;
    animation: loginCardPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes loginCardPop {
    0% { opacity: 0; transform: translateY(40px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.academic-logo-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.utb-logo-svg,
.utb-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-card h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.login-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 35px;
}

/* Modern inputs with floating labels */
.login-form .input-group {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.login-form .input-group input {
    width: 100%;
    padding: 16px 20px 16px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #FFF;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-form .input-group input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(224, 169, 109, 0.3);
}

/* Focus labels floating */
.login-form .input-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-form .input-group label i {
    width: 18px;
    height: 18px;
}

.login-form .input-group input:focus ~ label,
.login-form .input-group input:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 15px;
    font-size: 11px;
    color: var(--accent-gold);
    background: #141b31;
    padding: 0 8px;
    border-radius: 4px;
    transform: translateY(0);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
}

.remember-me input {
    accent-color: var(--accent-gold);
}

.forgot-password-trigger {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-trigger:hover {
    text-decoration: underline;
}

/* Button Primary Styling */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, #D49B5E 100%);
    border: none;
    border-radius: var(--radius-md);
    color: var(--primary-deep);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(224, 169, 109, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-30deg);
    transition: 0.75s;
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 169, 109, 0.5);
}

.spinner-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(13, 27, 42, 0.2);
    border-top: 3px solid var(--primary-deep);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-footer {
    margin-top: 35px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Class to handle transition out of login screen */
.login-wrapper.slide-up-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   3. Tata Letak Dashboard Utama (Section 2)
   ========================================================================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--primary-deep);
    color: #FFF;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed Sidebar on Desktop */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .sidebar-brand .brand-text,
.sidebar.collapsed .sidebar-menu span,
.sidebar.collapsed .sidebar-user .user-info,
.sidebar.collapsed .sidebar-user #btn-logout {
    display: none;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 24px 0;
}

.sidebar.collapsed .sidebar-user {
    justify-content: center;
}

.sidebar.collapsed .menu-item a {
    justify-content: center;
    padding: 14px;
}

.sidebar.collapsed .menu-item.active a {
    border-left: none;
    border-bottom: 3px solid var(--accent-gold);
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-svg,
.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text h3 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #FFFFFF;
}

.brand-text p {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-menu {
    flex: 1;
    padding: 24px 16px;
}

.sidebar-menu ul {
    list-style: none;
}

.menu-item {
    margin-bottom: 8px;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.menu-item a i {
    width: 20px;
    height: 20px;
}

.menu-item:hover a,
.menu-item.active a {
    color: #FFF;
    background-color: rgba(255, 255, 255, 0.06);
}

.menu-item.active a {
    background-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(27, 38, 59, 0.3);
    border-left: 4px solid var(--accent-gold);
}

.sidebar-user {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-info h4 {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-info p {
    font-size: 10px;
    color: var(--text-muted);
}

.btn-logout-icon {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-logout-icon:hover {
    color: var(--accent-red);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Main Workspace */
.main-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

/* Topbar Styling */
.topbar {
    height: 75px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    flex-shrink: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.btn-sidebar-toggle:hover {
    background-color: var(--bg-light);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.parent-bc {
    color: var(--text-muted);
}

.separator {
    color: var(--border-color);
}

.current-bc {
    color: var(--primary-light);
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-bar input {
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-light);
    font-size: 13px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    width: 320px;
    border-color: var(--primary-light);
    background-color: #FFF;
    box-shadow: var(--shadow-soft);
}

.notification-bell {
    position: relative;
    cursor: pointer;
    color: var(--text-dark);
}

.notification-bell .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent-red);
    color: #FFF;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.profile-dropdown {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative; /* Relative positioning for child absolute menu */
}

.profile-info-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ==========================================================================
   New Styles: Dropdown Menus & Sidebar Overlay
   ========================================================================== */

/* Dropdown General Menu Styles */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-large);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Notification Dropdown Customizations */
.notification-dropdown {
    width: 320px;
}

.notification-dropdown .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.notification-dropdown .dropdown-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.notification-dropdown .mark-read {
    font-size: 11px;
    color: var(--primary-light);
    cursor: pointer;
    font-weight: 500;
}

.notification-dropdown .mark-read:hover {
    text-decoration: underline;
}

.notification-dropdown .dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 270px;
    overflow-y: auto;
}

.notification-dropdown .dropdown-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notification-dropdown .dropdown-item:hover {
    background-color: var(--bg-light);
}

.notification-dropdown .dropdown-item.unread {
    background-color: rgba(224, 169, 109, 0.05); /* very light gold tint */
}

.notification-dropdown .item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-dropdown .item-icon i {
    width: 16px;
    height: 16px;
}

.notification-dropdown .icon-success {
    background-color: rgba(43, 147, 72, 0.1);
    color: #2b9348;
}

.notification-dropdown .icon-info {
    background-color: rgba(19, 64, 116, 0.1);
    color: var(--primary-medium);
}

.notification-dropdown .icon-warning {
    background-color: rgba(224, 169, 109, 0.1);
    color: #d09040;
}

.notification-dropdown .item-details p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.notification-dropdown .item-details strong {
    font-weight: 600;
}

.notification-dropdown .item-time {
    font-size: 10px;
    color: var(--text-muted);
}

.notification-dropdown .dropdown-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.notification-dropdown .dropdown-footer a {
    font-size: 12px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.notification-dropdown .dropdown-footer a:hover {
    text-decoration: underline;
}

/* Profile Dropdown Customizations */
.profile-menu {
    width: 240px;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.profile-menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
}

.profile-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-menu-info h4 {
    margin: 0 0 2px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.profile-menu-info p {
    margin: 0;
    font-size: 10px;
    color: var(--text-muted);
}

.profile-menu-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.profile-menu-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-menu-list a:hover {
    background-color: var(--bg-light);
    color: var(--primary-light);
}

.profile-menu-list a i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.profile-menu-list a:hover i {
    color: var(--primary-light);
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.dropdown-logout-item {
    color: var(--accent-red) !important;
}

.dropdown-logout-item:hover {
    background-color: rgba(230, 57, 70, 0.05) !important;
}

.dropdown-logout-item i {
    color: var(--accent-red) !important;
}

/* Sidebar Overlay for Mobile Layout */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 19, 43, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 993px) {
    .sidebar-overlay {
        display: none !important;
    }
}

/* Footer Styling */
.footer {
    height: 60px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.footer-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 50%;
    margin: 0 10px;
}

.status-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2b9348;
    font-weight: 600;
}

.status-online .dot {
    width: 8px;
    height: 8px;
    background-color: #00b4d8;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* Container Body for Views */
.content-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.view-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-section.active-view {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   4. VIEW 1: DASHBOARD OVERVIEW DETAILS
   ========================================================================== */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-medium) 100%);
    border-radius: var(--radius-lg);
    padding: 35px 40px;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255,255,255,0.05);
}

.welcome-text h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.welcome-text h1 span {
    color: var(--accent-gold);
}

.welcome-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.welcome-stats {
    display: flex;
    gap: 25px;
    font-size: 12px;
    color: var(--accent-gold);
    font-weight: 600;
}

.welcome-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-illustration {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 50%;
    color: var(--accent-gold);
}

.huge-icon {
    width: 60px;
    height: 60px;
}

/* Statistics Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-soft);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 24px;
    height: 24px;
}

.icon-blue { background-color: rgba(27, 38, 59, 0.1); color: var(--primary-medium); }
.icon-yellow { background-color: rgba(224, 169, 109, 0.15); color: #B3864F; }
.icon-green { background-color: rgba(56, 176, 0, 0.1); color: #2B7F00; }
.icon-red { background-color: rgba(217, 4, 41, 0.1); color: var(--accent-red); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-trend {
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up { color: #2b9348; }
.trend-down { color: var(--accent-red); }
.trend-stable { color: var(--text-muted); }

/* Dashboard Split Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.grid-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-deep);
}

.card-body {
    padding: 24px;
    flex: 1;
}

.select-small {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--bg-light);
}

.chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sleek-svg-chart {
    width: 100%;
    height: auto;
    max-height: 200px;
}

.view-all-link {
    font-size: 12px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Activity Logger List */
.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    width: 14px;
    height: 14px;
}

.icon-success { background-color: rgba(56, 176, 0, 0.1); color: #2B7F00; }
.icon-info { background-color: rgba(27, 38, 59, 0.1); color: var(--primary-medium); }
.icon-warning { background-color: rgba(224, 169, 109, 0.15); color: #B3864F; }

.activity-details p {
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.activity-details span {
    font-size: 10px;
    color: var(--text-muted);
}

/* Shortcut Buttons */
.dashboard-shortcuts h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 15px;
}

.shortcut-buttons {
    display: flex;
    gap: 15px;
}

.shortcut-btn {
    flex: 1;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

.shortcut-btn i {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
}

.shortcut-btn span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.shortcut-btn:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(224, 169, 109, 0.15);
}

/* ==========================================================================
   5. VIEW 2: PENGAJUAN KTM (FORM & MOCK CARD)
   ========================================================================== */
.pengajuan-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.form-container-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.header-icon-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-wrap {
    width: 40px;
    height: 40px;
    background-color: rgba(27, 38, 59, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-medium);
}

.header-icon-title h3 {
    font-size: 16px;
    font-weight: 700;
}

.header-icon-title p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Styled Form fields */
.styled-academic-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-field.full-width {
    grid-column: span 2;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-field .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-field .input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.form-field .input-wrapper input,
.form-field .input-wrapper select {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.form-field .input-wrapper input:focus,
.form-field .input-wrapper select:focus {
    background-color: #FFF;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(65, 90, 119, 0.15);
}

/* File Upload drag-area style */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-drag-area {
    width: 100%;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 30px;
    background-color: var(--bg-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.file-upload-drag-area.drag-over {
    border-color: var(--primary-light);
    background-color: rgba(65, 90, 119, 0.05);
}

.drag-icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}

.drag-text {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.drag-text span {
    color: var(--primary-light);
    font-weight: 700;
    text-decoration: underline;
}

.file-specs {
    font-size: 10px;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.btn-secondary {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background-color: #FFF;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

.btn-primary-academic {
    flex: 1;
    padding: 12px 24px;
    background-color: var(--primary-medium);
    border: none;
    color: #FFF;
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(27, 38, 59, 0.2);
}

.btn-primary-academic:hover {
    background-color: var(--primary-deep);
    transform: translateY(-1px);
}

/* Preview Card Wrap */
.preview-container-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.preview-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex: 1;
}

/* ==========================================================================
   6. HIGH FIDELITY PHYSICAL KTM CARD RENDER
   ========================================================================== */
.ktm-card-physical {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 500 / 316;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    user-select: none;
    border: 1px solid rgba(0,0,0,0.06);
    container-type: inline-size; /* Enable container query sizing */
}

.ktm-card-template-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ktm-photo-box {
    position: absolute;
    left: 6.4%;
    top: 34.8%;
    width: 17.6%;
    height: 37.0%;
    border: 1px solid #94a3b8;
    background-color: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    z-index: 2;
}

.ktm-photo-box.hidden-box {
    display: none;
}

.ktm-student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ktm-metadata-container {
    position: absolute;
    left: 29.5%;
    top: 45%;
    width: 67%;
    z-index: 2;
}

.ktm-table-info {
    width: 100%;
    border-collapse: collapse;
}

.ktm-table-info td {
    padding: 0;
    height: 4.4cqw;
    line-height: 4.4cqw;
    vertical-align: middle;
    font-size: 2.7cqw;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.ktm-table-info td.lbl {
    width: 13.5%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #475569;
}

.ktm-table-info td.colon {
    width: 4%;
    text-align: center;
    color: #475569;
}

.ktm-table-info td.val {
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
}

.ktm-table-info td.val.val-nim {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.ktm-table-info td.font-bold {
    font-weight: 800 !important;
}

/* Action items below card */
.preview-actions {
    display: flex;
    gap: 15px;
}

.btn-action-outline {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    background-color: #FFF;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-action-outline i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.btn-action-outline:hover {
    border-color: var(--primary-light);
    background-color: var(--bg-light);
}

/* ==========================================================================
   7. VIEW 3: MAINTENANCE LAYOUT
   ========================================================================== */
.maintenance-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin: 40px auto 0 auto;
}

.maintenance-illustration {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px auto;
}

.gear-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gear {
    color: var(--text-muted);
    position: absolute;
}

.gear-large {
    width: 70px;
    height: 70px;
    top: 10px;
    left: 10px;
    animation: rotateClockwise 8s linear infinite;
}

.gear-small {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
    animation: rotateCounterClockwise 6s linear infinite;
}

@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.shield-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFF;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: var(--accent-gold);
}

.lock-icon {
    width: 24px;
    height: 24px;
}

.maintenance-box h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-deep);
    margin-bottom: 12px;
}

.maintenance-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.maintenance-specs {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    display: inline-flex;
    gap: 30px;
    font-size: 11px;
    color: var(--text-dark);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   8. VIEW 4: RIWAYAT TABLE
   ========================================================================== */
.riwayat-container-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.riwayat-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.riwayat-header-flex h3 {
    font-size: 16px;
    font-weight: 700;
}

.riwayat-header-flex p {
    font-size: 11px;
    color: var(--text-muted);
}

.table-actions {
    display: flex;
    gap: 12px;
}

.search-filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.table-search-input {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.table-search-input i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.table-search-input input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background-color: var(--bg-light);
}

.table-filter-select {
    position: relative;
    display: flex;
    align-items: center;
}

.table-filter-select i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.table-filter-select select {
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    min-width: 200px;
    appearance: none;
}

/* Academic Table Styling */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.academic-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.academic-table th {
    background-color: var(--bg-light);
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-deep);
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.3px;
}

.academic-table td {
    padding: 12px 18px;
    font-size: 12.5px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.academic-table tbody tr:hover {
    background-color: rgba(244, 246, 249, 0.5);
}

.table-photo-avatar {
    width: 38px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    display: inline-block;
}

.badge-success { background-color: rgba(56, 176, 0, 0.1); color: #2B7F00; }
.badge-pending { background-color: rgba(224, 169, 109, 0.15); color: #B3864F; }

.empty-table-state {
    text-align: center;
    padding: 60px 0 !important;
    color: var(--text-muted);
}

.empty-table-state i {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-table-state p {
    font-size: 13px;
    font-weight: 500;
}

.btn-icon-only {
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
}

.btn-icon-only:hover {
    border-color: var(--primary-light);
    color: var(--primary-deep);
    background-color: var(--bg-light);
}

/* ==========================================================================
   9. NOTIFICATION & MODALS SYSTEM
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: var(--primary-deep);
    border: 1px solid var(--accent-gold);
    color: #FFF;
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-gold);
}

.toast-message {
    font-size: 13px;
    font-weight: 500;
}

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 27, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: #FFF;
    border-radius: var(--radius-md);
    width: 480px;
    padding: 30px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-alert-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-gold-hover);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.btn-close-modal-x {
    position: absolute;
    right: 0;
    top: -5px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-warning-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-gold);
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.modal-footer .btn-primary {
    width: auto;
    padding: 10px 24px;
}

/* Helper Class helper hidden */
.hidden {
    display: none !important;
}

/* ==========================================================================
   10. RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
    .pengajuan-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transform: translateX(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.collapsed {
        width: 280px !important; /* Keep it 280px as drawer, but offscreen */
        transform: translateX(-100%);
    }
    
    /* Force display inner elements when sidebar is active/expanded on mobile */
    .sidebar .sidebar-brand .brand-text,
    .sidebar .sidebar-menu span,
    .sidebar .sidebar-user .user-info,
    .sidebar .sidebar-user #btn-logout {
        display: block !important;
    }
    
    .sidebar .sidebar-brand {
        display: flex;
        justify-content: flex-start;
        padding: 24px;
        gap: 15px;
    }
    
    .sidebar .sidebar-user {
        display: flex;
        justify-content: flex-start;
        padding: 20px;
        gap: 12px;
    }
    
    .sidebar .menu-item a {
        display: flex;
        justify-content: flex-start;
        padding: 14px 18px;
        gap: 14px;
    }
    
    .sidebar .menu-item.active a {
        border-left: 4px solid var(--accent-gold);
        border-bottom: none;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filter-row {
        flex-direction: column;
    }
    
    .topbar .search-bar {
        display: none;
    }
    
}

/* Styling overrides for high-fidelity export rendering */
.ktm-card-physical.rendering-export {
    width: 500px !important;
    height: 316px !important;
    max-width: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 16px !important;
}

.ktm-card-physical.rendering-export .ktm-table-info td {
    height: 22px !important;
    line-height: 22px !important;
    font-size: 13.5px !important;
}

/* ==========================================================================
   Theme Toggle Button Styling
   ========================================================================== */
.btn-theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-theme-toggle:hover {
    background-color: var(--border-color);
}

.btn-theme-toggle i {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   9. PROFIL SAYA & PENGATURAN AKUN VIEW
   ========================================================================== */
.profile-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.profile-card-left {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 30px 24px;
}

.profile-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar-upload-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar-large {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--accent-gold);
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 27, 42, 0.7);
    color: #FFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar-large:hover .avatar-edit-overlay {
    opacity: 1;
}

.avatar-edit-overlay i {
    width: 20px;
    height: 20px;
}

.avatar-edit-overlay span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#profile-card-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

#profile-card-role {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-divider {
    width: 100%;
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

.profile-nav-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-tab {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.profile-tab i {
    width: 16px;
    height: 16px;
}

.profile-tab:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.profile-tab.active {
    background-color: var(--primary-deep);
    color: #FFF !important;
}

body.dark-theme .profile-tab.active {
    background-color: var(--accent-gold);
    color: var(--primary-deep) !important;
}

.profile-content-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 30px;
}

.profile-form-tab {
    display: none;
}

.profile-form-tab.active-form-tab {
    display: block;
}

@media (max-width: 992px) {
    .profile-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   10. DARK THEME STYLING
   ========================================================================== */
body.dark-theme {
    --bg-light: #0B0F19;           /* Deep dark background */
    --bg-card: #151F32;            /* Dark card background */
    --text-dark: #F1F5F9;          /* Light gray text */
    --border-color: #243049;       /* Dark border color */
    --text-muted: #94A3B8;         /* Lighter muted text */
}

/* Background overrides for inputs in dark mode */
body.dark-theme .form-field .input-wrapper input:focus,
body.dark-theme .form-field .input-wrapper select:focus,
body.dark-theme .search-bar input:focus {
    background-color: var(--bg-card) !important;
}

/* Table styling fixes in dark theme */
body.dark-theme .academic-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

body.dark-theme .academic-table th {
    background-color: #1A263F !important;
    color: #FFF !important;
}

/* Card header backgrounds */
body.dark-theme .card-header,
body.dark-theme .riwayat-header-flex,
body.dark-theme .profile-content-card .card-header {
    border-bottom-color: var(--border-color);
}

/* SVG Chart Line styling for visibility in dark mode */
body.dark-theme .sleek-svg-chart line {
    stroke: #243049;
}

body.dark-theme .sleek-svg-chart text {
    fill: #94A3B8;
}

/* Breadcrumbs text color */
body.dark-theme .topbar .breadcrumb .parent-bc {
    color: #94A3B8;
}

body.dark-theme .topbar .breadcrumb .separator {
    color: #475569;
}

/* Scrollbar styling in dark mode */
body.dark-theme ::-webkit-scrollbar-track {
    background: #0B0F19;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: #243049;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #3B4B6E;
}

/* ==========================================================================
   10. WATERMARK FOR PUBLIC PREVIEW CARD
   ========================================================================== */
.ktm-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.12;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transform: rotate(-22deg) scale(1.15);
}

.ktm-watermark-row {
    font-size: 3.5cqw;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-red);
    white-space: nowrap;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   11. DEDICATED APPROVAL VIEW (SPLIT LAYOUT)
   ========================================================================== */
.approval-split-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    height: calc(100vh - 160px);
    min-height: 550px;
}

.approval-list-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.scrollable-approval-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.approval-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.approval-item-row:hover {
    border-color: var(--accent-gold);
    background-color: #FFF;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.approval-item-row.active {
    border-color: var(--primary-light);
    background-color: rgba(65, 90, 119, 0.05);
    box-shadow: inset 3px 0 0 var(--accent-gold);
}

.approval-item-avatar {
    width: 40px;
    height: 52px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background-color: #eee;
    flex-shrink: 0;
}

.approval-item-info {
    flex: 1;
    min-width: 0;
}

.approval-item-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.approval-item-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.approval-item-badge {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.approval-detail-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.empty-detail-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.empty-detail-state i {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-detail-state h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-detail-state p {
    font-size: 13px;
    max-width: 400px;
}

.split-detail-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-preview-wrap {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar notification badge styling */
.sidebar-badge {
    background-color: var(--accent-gold);
    color: var(--primary-deep);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(224, 169, 109, 0.3);
}

.sidebar-badge.hidden {
    display: none;
}

/* Dark theme additions for split approval layout */
body.dark-theme .approval-item-row {
    background-color: #1A263F;
    border-color: #243049;
}

body.dark-theme .approval-item-row:hover {
    background-color: #243049;
    border-color: var(--accent-gold);
}

body.dark-theme .approval-item-row.active {
    background-color: rgba(65, 90, 119, 0.15);
}

body.dark-theme .approval-item-avatar {
    border-color: #243049;
    background-color: #141B2D;
}

body.dark-theme .detail-preview-wrap {
    background-color: #141B2D;
    border-color: #243049;
}




