* { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ==================== ROOT VARIABLES (LIGHT MODE) ==================== */
:root {
    /* Warna GENTING JEMBER - PINK MODE */
    --primary-color: #ff679a;
    --secondary-color: #ff9ec0;
    --accent-color: #ffe4ec;
    --dark-color: #d43f78;
    --light-color: #fff0f5;
    --bg-color: #f8f9fa;
    --card-color: #ffffff;
    --text-color: #333;
    --text-muted: #666;
    --border-color: #e0e0e0;
    --sidebar-width: 260px;
    --sidebar-collapsed: 120px;
    --topbar-height: 70px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ==================== TOP NAVBAR SYSTEM ==================== */
.top-navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: linear-gradient(to right, var(--primary-color), var(--dark-color));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sidebar-collapsed .top-navbar {
    left: var(--sidebar-collapsed);
}

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

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-small img {
    height: 35px;
    width: auto;
    border-radius: 5px;
}

.logo-text {
    font-weight: 600;
    font-size: 18px;
    color: white;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    position: relative;
}

.navbar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.notification-panel {
    position: absolute;
    top: 55px;
    right: 40px;
    background: var(--card-color);
    color: var(--text-color);
    min-width: 350px;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

.notification-panel.show {
    display: flex;
}

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

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

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

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

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

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 2px;
}

.notification-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 4px;
}

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

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 160px;
    overflow: hidden;
}

.user-name {
    color: white;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    color: rgba(255, 255, 255, 0.85);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.user-arrow {
    font-size: 12px;
    color: white;
    transition: transform 0.3s ease;
}

.user-profile.active .user-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--card-color);
    color: var(--text-color);
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

.user-profile.active .user-dropdown {
    display: flex;
}

.dropdown-header {
    padding: 15px;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-user-name {
    display: block;
    font-weight: 700;
    color: var(--dark-color);
    font-size: 15px;
    margin-bottom: 2px;
}

.dropdown-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: background 0.2s ease;
    cursor: pointer;
}

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

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

.dropdown-item.logout {
    color: #e74c3c;
}

.dropdown-item.logout:hover {
    background: rgba(231, 76, 60, 0.15);
}

/* ==================== SIDEBAR SYSTEM ==================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: var(--sidebar-width);
    background: var(--card-color);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: var(--transition);
    overflow: hidden;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sidebar-collapsed .sidebar-header {
    padding: 20px 10px;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #fff;
    padding: 5px;
}

.sidebar-collapsed .sidebar-logo {
    width: 45px;
    height: 45px;
    margin-bottom: 0;
    margin-left: 15px;
    padding: 3px;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-title {
    font-weight: 900;
    font-size: 22px;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.sidebar-subtitle {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sidebar-collapsed .sidebar-title,
.sidebar-collapsed .sidebar-subtitle {
    display: none;
}

.sidebar-menu {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-section {
    margin-bottom: 25px;
}

.menu-title {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.sidebar-collapsed .menu-title {
    display: none;
}

.menu-items {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

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

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.menu-link:hover {
    background-color: rgba(255, 103, 154, 0.05);
    color: var(--dark-color);
    border-left-color: var(--accent-color);
}

.menu-item.active > .menu-link {
    background-color: rgba(255, 103, 154, 0.12);
    color: var(--dark-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    color: var(--primary-color);
}

.sidebar-collapsed .menu-icon {
    margin-right: 0;
    margin: 0 auto;
}

.menu-text {
    font-size: 14px;
    transition: var(--transition);
}

.sidebar-collapsed .menu-text {
    display: none;
}

.menu-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: transparent;
    list-style: none;
    padding-left: 0;
}

.menu-dropdown .menu-link {
    padding-left: 45px;
    border-left: none;
}

.menu-dropdown .menu-link i {
    color: var(--primary-color);
}

.menu-dropdown.show {
    max-height: 800px;
}

.sidebar .text-blue-500 {
    color: #ff679a !important;
}

.menu-dropdown .menu-link:has(.text-blue-500) {
    background-color: rgba(255, 103, 154, 0.12) !important;
    border-left: 3px solid #ff679a !important;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    border: none !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    line-height: 1;
}

.dropdown-toggle.active::after {
    transform: rotate(180deg);
}

.sidebar-collapsed .dropdown-toggle::after {
    display: none;
}

/* ==================== SIDEBAR PROFILE ==================== */
.sidebar-profile {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.sidebar-collapsed .sidebar-profile {
    justify-content: center;
    padding: 15px 10px;
}

.sidebar-profile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-profile-info {
    flex: 1;
    min-width: 0;
}

.sidebar-collapsed .sidebar-profile-info {
    display: none;
}

.sidebar-profile-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--dark-color);
    margin-bottom: 2px;
}

.sidebar-profile-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== MAIN CONTENT & MODAL ==================== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    transition: var(--transition);
}

.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed);
}

.modal-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.modal-confirm.active {
    display: flex;
}

.modal-box {
    background: var(--card-color);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-box h3 {
    margin: 15px 0 10px;
    color: var(--text-color);
}

.modal-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-cancel, .btn-confirm {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-confirm {
    background: #dc3545;
    color: white;
}

.btn-confirm:hover {
    background: #c82333;
}

/* ==================== RESPONSIVE ==================== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.mobile-overlay.show {
    display: block;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .top-navbar {
        left: 0;
    }
}

@media (max-width: 576px) {
    .top-navbar {
        padding: 0 15px;
    }
    .logo-text {
        display: none;
    }
    .main-content {
        padding: 15px 0;
    }
}

@media (max-width: 768px) {
    .user-info-text {
        display: none !important;
    }
    .logo-small {
        display: none !important;
    }
}

/* UI COMPONENTS */
::-webkit-scrollbar { width: 6px; height: 6px;}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 103, 154, 0.45); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 103, 154, 0.85); }

/* Custom Scrollbar for Sidebar Menu */
.sidebar-menu::-webkit-scrollbar { width: 4px; height: 4px; }
.sidebar-menu::-webkit-scrollbar-track { background: transparent; }
.sidebar-menu::-webkit-scrollbar-thumb { background: var(--secondary-color); border-radius: 4px; }
.sidebar-menu:hover::-webkit-scrollbar-thumb { background: var(--primary-color); }

.notif-dot { width:8px; height:8px; background:#ef4444; border-radius:50%; position:absolute; top:6px; right:6px; border:2px solid #fff; }



/* 🛑 GLOBAL PAGINATION FLAT STYLE (No Shadow) */
nav[role="navigation"] span,
nav[role="navigation"] a {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

nav[role="navigation"] .z-10 {
    box-shadow: none !important;
    border-color: transparent !important;
}

/* 🛑 GLOBAL INPUT FLAT STYLE (No Shadow / No Ring) */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}



input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
    border-color: #ff9ec0 !important;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    background-color: #ffffff !important;
    border-color: #ff679a !important;
    box-shadow: none !important;
    outline: none !important;
}

