/* Font Cyberpunk */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    background: radial-gradient(circle at center, #2b0047, #11001b);
    font-family: 'Orbitron', sans-serif;
}

/* Sidebar */
.sidebar {
    /* width: 250px; */
    background: linear-gradient(180deg, #3b009d, #1a002f);
    padding-top: 30px;
    overflow-x: hidden;
}

.sidebar a {
    color: #d4b7ff;
    font-weight: bold;
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar a:hover, .sidebar .active {
    background: #7a00ff;
    border-radius: 6px;
    color: white;
}

/* Fix untuk submenu items */
.collapse-item {
    white-space: normal !important;
    overflow: visible;
    text-overflow: unset;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem;
    word-wrap: break-word;
    line-height: 1.3;
}

.collapse-inner {
    width: 100%;
    max-width: 240px;
}

/* NAV TOP */
.navbar-custom {
    height: 70px;
    background: rgba(140, 0, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    margin: 20px;
    padding: 15px;
}

/* Card Neon */
.card-neon {
    background: #2f2438;
    border-radius: 15px;
    padding: 20px;
    color: white;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    transition: 0.3s;
    height: 100%;
}

.card-neon:hover {
    box-shadow: 0px 0px 35px rgba(140, 0, 255, 0.6);
    transform: translateY(-2px);
}

/* Bank Info Styling */
.bank-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bank-info p {
    color: #ffffff;
    margin-bottom: 5px;
}

.bank-info strong {
    color: #00d4ff;
}

/* Dashboard specific styles */
.text-title {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0px 0px 10px rgba(140, 0, 255, 0.8);
}

.stat-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card .label {
    color: #d4b7ff;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00d4ff;
    margin: 0;
}

/* Neon Button Styles */
.neon-btn {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.neon-btn:hover {
    color: white;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
    transform: translateY(-2px);
}

.btn-cyan {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    border: none;
}

.btn-cyan:hover {
    background: linear-gradient(45deg, #0099cc, #00d4ff);
    color: white;
}

/* Table Styles */
.table-dark {
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.table-dark th,
.table-dark td {
    border-color: rgba(140, 0, 255, 0.3);
    padding: 12px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(140, 0, 255, 0.1);
}

/* Flash Messages Styling */
.flash-message {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    transition: opacity 0.5s ease-in-out;
}

.flash-message.alert-success {
    background: linear-gradient(45deg, rgba(40, 167, 69, 0.9), rgba(34, 139, 34, 0.9));
    border: 1px solid #28a745;
    color: white;
}

.flash-message.alert-danger {
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.9), rgba(178, 34, 34, 0.9));
    border: 1px solid #dc3545;
    color: white;
}

.flash-message .close {
    color: white;
    opacity: 0.8;
}

.flash-message .close:hover {
    opacity: 1;
    color: white;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

/* Base desktop styles (default) - only apply on desktop */
@media (min-width: 769px) {
    .sidebar {
        width: 250px;
        position: relative;
        transform: none;
        height: 100vh;
        background: linear-gradient(180deg, #3b009d, #1a002f);
        overflow-y: auto;
        border-right: none;
        box-shadow: none;
        z-index: auto;
        transition: none;
        margin-right: 0;
    }
}

#content-wrapper {
    margin-left: 240px;
    width: calc(100% - 240px);
    transition: none;
    padding-left: 0;
    padding-top: 0;
    margin-right: 0;
}

#sidebarToggleTop {
    display: none;
}

/* Remove overlay on desktop */
body.sidebar-toggled::before {
    display: none;
}

/* Reset sidebar text colors */
.sidebar * {
    color: inherit;
}

.sidebar .nav-link {
    color: #d4b7ff;
}

/* Desktop container spacing */
.container-fluid {
    padding: 10px 15px 25px 10px !important;
    max-width: none;
    margin-left: 0 !important;
}

/* Add some breathing room for main content */
#page-top {
    padding-left: 0;
}

/* Eliminate gap between sidebar and content */
#wrapper {
    display: flex;
    margin: 0;
    padding: 0;
}

#content {
    margin: 0;
    padding: 0;
}

.text-title {
    margin-left: 0;
    padding-left: 0;
}

/* Desktop card grid spacing */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

.row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Tablet breakpoint for better spacing transition */
@media (min-width: 769px) and (max-width: 1024px) {
    .container-fluid {
        padding: 15px 20px 20px 15px !important;
    }
    
    #content-wrapper {
        margin-left: 240px;
        width: calc(100% - 240px);
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    /* Matikan semua transform slide sisa */
    .sidebar,
    .sidebar.toggled,
    body.sidebar-toggled .sidebar {
        transform: none !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        position: fixed !important; /* tetap fixed di bawah topbar */
        top: 60px !important; /* sama dengan tinggi topbar */
        height: auto !important;
        max-height: 0 !important; /* default tertutup */
        overflow: hidden !important;
        opacity: 0 !important;
        transition: max-height 0.34s ease, opacity 0.28s ease !important;
        box-shadow: 0 6px 25px rgba(0,0,0,0.35) !important;
        z-index: 1026 !important; /* lebih tinggi dari overlay */
    }

    /* Saat body.sidebar-toggled -> tampilkan dropdown */
    body.sidebar-toggled .sidebar {
        max-height: calc(100vh - 60px) !important;
        opacity: 1 !important;
        overflow-y: auto !important;
        overflow-x: visible !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Overlay di bawah sidebar (biar tidak memotong) */
    body.sidebar-toggled::before {
        content: "";
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1025; /* harus < z-index sidebar */
        pointer-events: auto;
    }

    /* Pastikan content tidak bergerak / tidak tertutup sebagian */
    #content-wrapper,
    #wrapper,
    #content {
        margin-left: 0 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Jika ada sisa rule yang mengubah margin-left ketika toggled, paksa kembali */
    body.sidebar-toggled #content-wrapper,
    body.sidebar-toggled #content {
        margin-left: 0 !important;
        padding-top: 60px !important; /* beri ruang karena topbar fixed */
    }

    /* Pastikan collapse menu muncul di atas sidebar content */
    .sidebar .collapse,
    .sidebar .collapse .collapse-inner {
        display: block !important;
        position: relative !important;
        overflow: visible !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1030 !important;
    }
}

/* Safety: hapus efek slide di layar lebar */
@media (min-width: 769px) {
    .sidebar {
        transform: none !important;
        left: auto !important;
        position: relative !important;
        z-index: 20 !important;
        max-height: none !important;
        opacity: 1 !important;
    }
}
    
    /* Flexible content with text wrapping */
    .sidebar * {
        color: white !important;
        visibility: visible !important;
        box-sizing: border-box !important;
    }
    
    /* Flexible brand - larger for mobile */
    .sidebar-brand {
        padding: 12px 10px !important;
        font-size: 16px !important;
        text-align: center !important;
        border-bottom: 1px solid #ff00ff !important;
        margin-bottom: 8px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .sidebar-brand-text {
        font-size: 14px !important;
        display: block !important;
        margin-top: 3px !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }
    
    .sidebar-brand-icon {
        font-size: 20px !important;
    }
    
    /* Flexible nav links with text wrapping - larger for mobile */
    .sidebar .nav-link {
        color: #d4b7ff !important;
        padding: 12px 15px !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin: 3px 0 !important;
        border-radius: 6px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        display: flex !important;
        align-items: center !important;
        min-height: 44px !important;
    }
    
    .sidebar .nav-link:hover {
        background: rgba(255, 0, 255, 0.2) !important;
    }
    
    .sidebar .nav-link i {
        font-size: 18px !important;
        width: 25px !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
    }
    
    .sidebar .nav-link span {
        flex: 1 !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }
    
    /* Compact dividers */
    .sidebar-divider {
        margin: 5px 0 !important;
        border-color: #ff00ff !important;
    }
    
    /* Sidebar heading */
    .sidebar-heading {
        font-size: 9px !important;
        padding: 4px 8px !important;
        margin: 5px 0 !important;
        color: #ff9dff !important;
    }
    
    /* DEBUG: Add bright border to see if sidebar is there */
    .sidebar.toggled {
        box-shadow: 0 4px 20px rgba(255, 0, 255, 0.3) !important;
    }
    
    /* Force content wrapper to not interfere on mobile */
    #content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 0 !important;
        transition: none !important;
    }
    
    /* Collapse sections - larger for mobile readability */
    .collapse-inner {
        margin: 0 8px !important;
        padding: 8px !important;
        background: rgba(26, 0, 47, 0.9) !important;
        border: 1px solid #ff00ff !important;
        border-radius: 6px !important;
    }
    
    .collapse-header {
        font-size: 11px !important;
        padding: 6px 10px !important;
        color: #ff9dff !important;
        text-transform: uppercase !important;
        margin-bottom: 4px !important;
    }
    
    .collapse-item {
        padding: 8px 12px !important;
        font-size: 14px !important;
        color: #d4b7ff !important;
        border-radius: 4px !important;
        margin: 3px 0 !important;
        display: block !important;
        text-decoration: none !important;
    }
    
    .collapse-item:hover {
        background: rgba(255, 0, 255, 0.2) !important;
        color: white !important;
    }
    
    /* Force content wrapper to not interfere on mobile */
    #content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 0 !important;
        transition: none !important;
    }
    
    /* Overlay when sidebar is open on mobile */
    body.sidebar-toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9999;
        pointer-events: auto;
        display: block;
    }
    
    /* Ensure body doesn't scroll when sidebar is open */
    body.sidebar-toggled {
        overflow: hidden !important;
    }
}
    
    /* Ensure wrapper doesn't interfere */
    #wrapper {
        overflow-x: hidden;
    }
    
    /* Topbar mobile */
    .topbar {
        padding: 0.5rem 1rem;
        position: relative;
        z-index: 1030;
        margin-bottom: 5px !important;
    }
    
    /* Cards responsive */
    .stat-card {
        text-align: center;
        padding: 15px;
        min-height: 120px;
        margin-bottom: 15px;
    }
    
    .stat-card .value {
        font-size: 2rem;
    }
    
    .text-title {
        font-size: 1.5rem;
        margin-bottom: 15px !important;
    }
    
    /* Container spacing for mobile */
    .container-fluid {
        padding: 10px 15px !important;
        max-width: none;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Table responsive */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    /* Form responsive */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-sm {
        width: auto;
        margin-bottom: 5px;
    }
    
    /* Bank info responsive */
    .bank-info {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Hide sidebar brand text on mobile */
    .sidebar-brand-text {
        display: none;
    }


/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 200px !important;
        position: relative !important;
        transform: none !important;
        height: 100vh !important;
        top: auto !important;
        left: auto !important;
        background: linear-gradient(180deg, #3b009d, #1a002f) !important;
        border-right: none !important;
        box-shadow: none !important;
        z-index: auto !important;
    }
    
    .sidebar.show {
        transform: none !important;
    }
    
    #content-wrapper {
        margin-left: 240px !important;
    }
    
    .container-fluid {
        padding: 1rem;
    }
}

/* Desktop styles */
@media (min-width: 1025px) {
    /* Override ALL mobile styles for desktop */
    .sidebar {
        width: 250px !important;
        position: relative !important;
        transform: none !important;
        height: 100vh !important;
        top: auto !important;
        left: auto !important;
        background: linear-gradient(180deg, #3b009d, #1a002f) !important;
        border-right: none !important;
        box-shadow: none !important;
        z-index: auto !important;
        overflow-y: auto !important;
        transition: none !important;
    }
    
    #content-wrapper {
        margin-left: 240px !important;
        width: calc(100% - 240px) !important;
        transition: none !important;
    }
    
    /* Force hide mobile toggle on desktop */
    #sidebarToggleTop {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Remove mobile overlay completely */
    body.sidebar-toggled::before,
    body::before {
        display: none !important;
        content: none !important;
    }
    
    /* Reset sidebar colors for desktop */
    .sidebar * {
        color: inherit !important;
    }
    
    .sidebar .nav-link {
        color: #d4b7ff !important;
    }
    
    /* Remove mobile classes if they exist */
    body.sidebar-toggled {
        overflow: auto !important;
    }
    
    /* Ensure normal page flow */
    #wrapper {
        overflow-x: visible !important;
    }
}

/* Large desktop */
@media (min-width: 1400px) {
    .container-fluid {
        max-width: 1320px;
        margin: 0 auto;
    }
}

/* Mobile menu toggle */
@media (max-width: 768px) {
    /* Show mobile toggle button ONLY on mobile */
    #sidebarToggleTop {
        display: block !important;
        z-index: 10001 !important;
        position: relative;
        background: rgba(59, 0, 157, 0.8) !important;
        border: 2px solid #ff00ff !important;
        color: white !important;
        font-size: 1.2rem;
        padding: 0.75rem !important;
        cursor: pointer;
        touch-action: manipulation;
        min-height: 44px;
        min-width: 44px;
        border-radius: 8px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #sidebarToggleTop:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    #sidebarToggleTop:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    }
    
    /* Improve button accessibility on mobile */
    .btn-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Grid responsive adjustments */
    .col-md-4, .col-md-6, .col-md-8, .col-lg-6, .col-lg-8 {
        margin-bottom: 20px;
    }
    
    /* Page heading responsive */
    .page-heading h1 {
        font-size: 1.5rem;
    }
    
    /* Dashboard stats responsive */
    .row .col-md-4 {
        padding: 0 10px;
    }
}

/* Responsive table improvements */
@media (max-width: 576px) {
    .table-responsive table {
        font-size: 0.75rem;
    }
    
    .table th, .table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Stack form elements on small screens */
    .form-row .col-md-6 {
        margin-bottom: 15px;
    }
}

/* Responsive navigation improvements */
.navbar-nav .nav-item .nav-link {
    padding: 0.5rem 1rem;
}

/* Button */
.btn-neon {
    background: #ff00cc;
    padding: 10px 18px;
    border-radius: 20px;
    color: black;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.btn-neon:hover {
    background: yellow;
}

.text-title {
    font-size: 30px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
}

.navbar-custom img {
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

/* --- GLOBAL STYLE + BACKGROUND --- */
body {
    background: linear-gradient(145deg, #1b0028, #3a0057);
    color: #fff;
    font-family: 'Nunito', sans-serif;
}

/* --- SIDEBAR NEON --- */
.sidebar {
    background: rgba(15, 0, 26, 0.9) !important;
    backdrop-filter: blur(10px);
    border-right: 2px solid #9f00ff;
    /* box-shadow: 0 0 20px #8200d9; */
}

.sidebar .nav-item .nav-link {
    color: #d9b3ff !important;
    transition: 0.3s;
}

.sidebar .nav-item .nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px #ff00ff;
    transform: translateX(3px);
}

.sidebar-brand {
    color: #ff9dff !important;
    font-weight: bold;
    text-shadow: 0 0 10px #ff00ff;
}

/* Active Page Glow */
.sidebar .active > a {
    background: rgba(255, 0, 255, 0.15);
    border-left: 4px solid #ff00ff;
    color: #fff !important;
    text-shadow: 0 0 12px #ff00ff;
}

/* --- TOPBAR NEON STYLE --- */
.navbar {
    background: rgba(15, 0, 26, 0.9) !important;
    border-bottom: 2px solid #9f00ff;
    box-shadow: 0 0 20px #8200d9;
    margin-bottom: 10px !important;
    padding: 0.75rem 1rem;
}

/* Reduce spacing between topbar and content */
.topbar {
    margin-bottom: 10px !important;
}

#content {
    padding-top: 0;
}

.navbar .nav-link span {
    color: #ffbfff !important;
    font-weight: bold;
}

.img-profile {
    border: 2px solid #000000;
    box-shadow: 0 0 10px #000000;
}

/* Dropdown */
.dropdown-menu {
    background-color: #2c0040;
    border: 1px solid #ff00ff;
}

.dropdown-item {
    color: #fff !important;
    transition: 0.2s;
}

.dropdown-item:hover {
    background-color: #ff00ff;
    color: #000 !important;
}

/* Page Styling */
.page-title {
    color: #ff43ff;
    text-shadow: 0 0 12px #ff00ff;
    font-weight: bold;
}

/* Neon Button */
.neon-btn {
    background: #ff00ff;
    border: none;
    color: #000;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 0 18px #ff00ff;
    transition: .3s;
}

.neon-btn:hover {
    background: #ffffff;
    color: #000;
    box-shadow: 0 0 35px #ff00ff;
    transform: scale(1.05);
}

/* Neon Card */
.neon-card {
    background: rgba(120, 0, 255, 0.15);
    border: 2px solid #ff00ff;
    border-radius: 12px;
    box-shadow: 0 0 25px #ff00ff70;
}

/* Inputs */
.neon-input {
    background: transparent;
    border: 2px solid #ff00ff;
    color: white;
    border-radius: 8px;
    box-shadow: 0 0 12px #ff00ff60;
}

.neon-input:focus {
    box-shadow: 0 0 30px #ff00ff;
    outline: none;
}

/* Table Neon */
.neon-table th {
    background: rgba(255, 0, 255, 0.3);
    color: #fff;
    text-shadow: 0 0 6px #ff00ff;
}

.neon-table td {
    background: rgba(70, 0, 100, 0.4);
    color: #fff;
}

.neon-table tr:hover {
    background: rgba(255, 0, 255, 0.25);
    transition: .2s;
}

/* --------- GLOBAL OVERRIDE FIX --------- */
body, #content-wrapper, #content {
    background: transparent !important;
    color: white !important;
}

/* --------- FORCE SIDEBAR OVERRIDE --------- */
.sidebar {
    background: #45464e !important;
    /* border-right: 2px solid #ff00ff !important;
    box-shadow: 0 0 20px #9f00ff !important; */
}

.sidebar .nav-link {
    color: #d9b3ff !important;
    font-weight: bold !important;
}

.sidebar .nav-link:hover {
    background: rgba(255, 0, 255, 0.2) !important;
    color: #fff !important;
    text-shadow: 0 0 10px #ff00ff !important;
}

.sidebar .active > a {
    background: rgba(255, 0, 255, 0.25) !important;
    border-left: 4px solid #ff00ff !important;
    color: white !important;
}

/* --------- TOPBAR FIX --------- */
.navbar {
    background: #45464e !important;
    /* border-bottom: 2px solid #ff00ff !important;
    box-shadow: 0 0 20px #9f00ff !important; */
}

.navbar .nav-link span {
    color: #ffbfff !important;
}

/* Avatar glow
.img-profile {
    border: 2px solid #ff00ff !important;
    box-shadow: 0 0 12px #ff00ff !important;
} */

/* --------- CARDS --------- */
.card {
    background: rgba(110, 0, 200, 0.4) !important;
    border: 1px solid #ff00ff !important;
    color: white !important;
    box-shadow: 0 0 25px #ff00ff55 !important;
}

/* --------- TABLE --------- */
.table {
    color: white !important;
}

.table thead {
    background: rgba(255,0,255,0.3) !important;
}

.table tbody tr:hover {
    background: rgba(255,0,255,0.2) !important;
}

/* Buttons */
.btn-primary {
    background: #ff00ff !important;
    border: none !important;
    box-shadow: 0 0 20px #ff00ff !important;
}

.btn-primary:hover {
    background: #ffffff !important;
    color: black !important;
    box-shadow: 0 0 35px #ff00ff !important;
}

/* --------- FORCE SCROLL BACKGROUND --------- */
#wrapper, .container-fluid {
    background: transparent !important;
}

/* --------- ANIMATED GALAXY BACKGROUND ---------- */

.stars, .nebula, .overlay-gradient {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Stars */
.stars {
    background: url("https://www.transparenttextures.com/patterns/stardust.png");
    animation: moveStars 50s linear infinite;
    opacity: 0.6;
}

/* Nebula effect */
.nebula {
    background: radial-gradient(circle at 30% 50%, rgba(255,0,255,0.25), transparent 70%),
                radial-gradient(circle at 70% 20%, rgba(0,150,255,0.25), transparent 70%);
    animation: floatNebula 20s ease-in-out infinite alternate;
    opacity: 0.4;
}

/* Gradient overlay for effect depth */
.overlay-gradient {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(50,0,80,0.7));
}

/* Animations */
@keyframes moveStars {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

@keyframes floatNebula {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, -60px) scale(1.2); }
}

#wrapper, body, #content-wrapper, #content, .container-fluid {
    background: transparent !important;
}

/* =========================
   Team Card / KOSN-style
   ========================= */

/* Wrapper card khusus team */
.kosn-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255,0,255,0.12);
    box-shadow: 0 10px 30px rgba(60,0,80,0.45), inset 0 1px 0 rgba(255,255,255,0.02);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.kosn-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(120,0,255,0.45);
}

.kosn-card .card-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* user box (foto + nama) */
.kosn-user-box {
    width: 110px;
    text-align: center;
    padding: 6px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.04);
}

/* foto peserta */
.kosn-photo {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 20px rgba(160,0,255,0.18);
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, #8a2be2, #4b0082);
}

/* fallback default image styling (jaga agar tidak pecah) */
.kosn-photo[src$="default-avatar.png"] {
    object-fit: contain;
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    padding: 12px;
    /* Add user icon using CSS */
    position: relative;
}

.kosn-photo[src$="default-avatar.png"]:after {
    content: "👤";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: white;
}

/* card title / subtitle */
.kosn-card h4, .kosn-card p {
    margin: 0;
    padding: 0;
}

/* tombol sekunder (Edit) */
.neon-btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.06);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(255,0,255,0.06);
    transition: all .18s ease;
    font-weight: 700;
}

.neon-btn-secondary:hover {
    background: rgba(255,255,255,0.04);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255,0,255,0.18);
}

/* badges khusus validasi (konsisten dg neon theme) */
.neon-badge-success {
    background: linear-gradient(90deg, rgba(0,255,170,0.12), rgba(0,255,170,0.06));
    color: #b9ffef;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,255,170,0.12);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.neon-badge-warning {
    background: linear-gradient(90deg, rgba(255,200,0,0.12), rgba(255,200,0,0.04));
    color: #fff1c9;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,200,0,0.12);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.neon-badge-danger {
    background: linear-gradient(90deg, rgba(255,0,110,0.12), rgba(255,0,110,0.04));
    color: #ffd6ea;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,0,110,0.12);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

/* tombol full width pada card */
.kosn-card .btn {
    border-radius: 10px;
    font-weight: 700;
}

/* spacing untuk tombol di card */
.kosn-card .d-flex.flex-column.gap-2 {
    margin-top: 12px;
}

/* halaman detail - foto besar */
.detail-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid rgba(255,255,255,0.04);
    box-shadow: 0 15px 40px rgba(0,0,0,0.45);
}

/* adaptasi mobile: responsive grid dan foto */
@media (max-width: 991px) {
    .kosn-user-box { width: 95px; }
    .kosn-photo { width: 72px; height: 72px; }
    .detail-photo { width: 130px; height: 130px; }
    .kosn-card { padding: 14px; border-radius: 14px; }
}

/* mobile single-column card full width */
@media (max-width: 575px) {
    .row > .col-md-6 { flex: 0 0 100%; max-width: 100%; }
    .kosn-user-box { margin: 0 6px; }
}

/* small helpers for "no image" display */
.kosn-user-box .no-image {
    display: inline-block;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 2px dashed rgba(255,255,255,0.04);
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* accessibility: ensure links inside cards visible */
.kosn-card a {
    color: #ffe6ff;
    text-decoration: none;
    font-weight: 700;
}

.kosn-card a:hover {
    text-decoration: underline;
}

/* small polish for the card footer (buttons alignment) */
.kosn-card .card-body > .d-flex {
    gap: 10px;
}

/* ensure neon-btn consistent size when used inside card */
.kosn-card .neon-btn {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
}

/* fix for table fallback (if user still uses table view) */
@media (min-width: 992px) {
    .table-responsive { overflow: visible; }
}

.neon-card,
.neon-card p,
.neon-card h4,
.neon-card h5,
.neon-card li,
.neon-card span,
.neon-card strong,
.neon-card a {
    color: #fff !important;
}

.neon-card .badge {
    color: #000 !important; /* biar badge tetap kebaca */
}

.detail-photo {
    border: 2px solid #fff;
}

/* FIX: Dashboard section top spacing issue */
#content-wrapper, #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.container, .container-fluid {
    padding-top: 0 !important;
}

/* ================================
   RESPONSIVE FIX FOR MOBILE
================================ */
@media (max-width: 575px) {

    /* Sidebar jadi lebih ramping */
    .sidebar {
        width: 70px !important;
        overflow: hidden;
    }

    .sidebar .nav-link span {
        display: none;
    }

    /* Navbar text */
    .navbar .nav-link span {
        font-size: 14px;
    }

    /* Dashboard title */
    .page-title {
        font-size: 22px;
    }

    /* Pengumuman Card */
    .neon-card {
        padding: 15px !important;
        border-radius: 12px !important;
    }

    /* Card pengumuman angka tidak kegedean */
    .neon-card h4 {
        font-size: 18px !important;
    }

    .neon-card p {
        font-size: 14px;
    }

    /* Card informasi */
    .kosn-card {
        margin-bottom: 20px;
    }

    /* Foto peserta */
    .detail-photo {
        width: 120px !important;
        height: 120px !important;
    }

    /* Fix layout box pengumuman */
    .dashboard-announcement-box {
        width: 100% !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .user-photo-card {
        width: 120px;
        height: 120px;
    }
}

/* ============================
   FIX: CARD TERLALU PANJANG
   ============================ */

/* Perkecil padding card */
.kosn-card {
    padding: 12px !important;
}

/* Perkecil ruang dalam card */
.kosn-card .card-body {
    padding: 10px !important;
}

/* Perkecil foto user */
.kosn-photo {
    width: 65px !important;
    height: 65px !important;
    box-shadow: 0 4px 12px rgba(160,0,255,0.15) !important;
}

/* Perkecil box foto */
.kosn-user-box {
    width: 85px !important;
    padding: 4px !important;
}

/* Kurangi jarak antar teks */
.kosn-card h4 {
    font-size: 16px !important;
    margin-bottom: 4px !important;
}

.kosn-card p {
    font-size: 13px !important;
    margin-bottom: 4px !important;
}

/* Perkecil jarak antar section (hr) */
.kosn-card hr {
    margin: 8px 0 !important;
}

/* Perkecil tombol */
.kosn-card .btn {
    padding: 6px 10px !important;
    font-size: 13px !important;
}

/* Perkecil badge */
.neon-badge-success,
.neon-badge-warning,
.neon-badge-danger {
    padding: 4px 8px !important;
    font-size: 10px !important;
}

/* Grid mobile biar rapi */
@media (max-width: 576px) {
    .kosn-user-box {
        width: 75px !important;
    }

    .kosn-photo {
        width: 58px !important;
        height: 58px !important;
    }

    .kosn-card {
        padding: 10px !important;
    }
}

.neon-input[readonly] {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #ff00ff !important;
    opacity: 1 !important;
    cursor: default;
}

/* ========================================
   FIX COLLAPSE MENU & RESPONSIVE MOBILE
   ======================================== */

/* Override CSS neon untuk fix collapse */
#accordionSidebar {
    position: relative;
    z-index: 1;
}

#accordionSidebar .collapse {
    position: relative !important;
    z-index: 999 !important;
}

#accordionSidebar .collapse-inner {
    background: linear-gradient(180deg, #2d0050, #1a0030) !important;
    border: 2px solid #ff00ff !important;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.5) !important;
    margin: 5px 10px 10px 10px;
}

#accordionSidebar .collapse-header {
    color: #ff9dff !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    padding: 8px 12px;
}

#accordionSidebar .collapse-item {
    color: #d9b3ff !important;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.2s;
}

#accordionSidebar .collapse-item:hover {
    background: rgba(255, 0, 255, 0.2) !important;
    color: #fff !important;
    text-shadow: 0 0 10px #ff00ff;
    transform: translateX(3px);
}

/* Smooth transition untuk collapse */
.collapse {
    transition: height 0.35s ease !important;
}

.nav-link[aria-expanded="true"] {
    background: rgba(255, 0, 255, 0.15) !important;
}

/* ========================================
   RESPONSIVE MOBILE (OVERWRITE NEON CSS)
   ======================================== */



/* Smaller screens - adjust collapse positioning */
@media (max-width: 575px) {
    .sidebar,
    .navbar-nav.sidebar,
    .bg-gradient-primary.sidebar,
    .sidebar-dark.sidebar,
    #accordionSidebar {
        max-width: 75vw !important;
        min-width: 180px !important;
    }
    
    .collapse.show .collapse-inner {
        left: -15px !important;
        right: -15px !important;
        max-width: calc(100vw - 10px) !important;
    }
    
    .sidebar .nav-link {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
    
    .sidebar-brand {
        font-size: 12px !important;
        padding: 6px 5px !important;
    }
    
    .sidebar-brand-text {
        font-size: 10px !important;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .sidebar,
    .navbar-nav.sidebar,
    .bg-gradient-primary.sidebar,
    .sidebar-dark.sidebar,
    #accordionSidebar {
        max-width: 70vw !important;
        min-width: 160px !important;
    }
    
    .collapse.show .collapse-inner {
        left: -20px !important;
        right: -20px !important;
        max-width: calc(100vw - 5px) !important;
    }
    
    .sidebar .nav-link {
        font-size: 10px !important;
        padding: 5px 6px !important;
    }
    
    .sidebar-brand {
        font-size: 11px !important;
        padding: 5px 4px !important;
    }
    
    .collapse-item {
        font-size: 10px !important;
        padding: 4px 6px !important;
    }
}

/* Mobile collapse positioning fixes to prevent cutoff */
@media (max-width: 768px) {
    /* Force collapse sections to extend beyond sidebar if needed */
    .nav-item .collapse.show {
        position: relative !important;
        overflow: visible !important;
    }
    
    .collapse.show .collapse-inner {
        position: absolute !important;
        left: -15px !important;
        right: -15px !important;
        width: auto !important;
        max-width: calc(100vw - 30px) !important;
        min-width: 200px !important;
        z-index: 10001 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
        border: 2px solid #ff00ff !important;
    }
    
    /* Ensure parent nav-item allows overflow */
    .sidebar .nav-item {
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Make sure text in collapse items wraps properly */
    .collapse-item {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    #accordionSidebar {
        width: 220px !important;
        max-width: 60vw !important;
    }
    
    .sidebar-brand-text {
        font-size: 10px !important;
    }
    
    .collapse-item {
        font-size: 11px !important;
        padding: 5px 8px !important;
    }
}

/* Desktop - pastikan sidebar normal */
@media (min-width: 769px) {
    .sidebar {
        position: relative !important;
        transform: translateX(0) !important;
    }
}

.payment-report-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Section */
.report-header {
    background: linear-gradient(135deg, rgba(120, 0, 255, 0.2), rgba(255, 0, 255, 0.15));
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(255, 0, 255, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff00ff, #8000ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.4);
}

.icon-wrapper i {
    font-size: 28px;
    color: white;
}

.report-title {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.report-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0 0;
    font-size: 14px;
}

.header-stats {
    display: flex;
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 0, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
}

.tab-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    border-color: #ff00ff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff00ff, #8000ff);
    border-color: #ff00ff;
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.5);
}

/* Payment Cards Grid */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.payment-card {
    background: linear-gradient(180deg, rgba(80, 0, 150, 0.2), rgba(40, 0, 80, 0.3));
    border: 2px solid rgba(255, 0, 255, 0.25);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.payment-card:hover {
    transform: translateY(-5px);
    border-color: #ff00ff;
    box-shadow: 0 8px 35px rgba(255, 0, 255, 0.4);
}

/* Card Header */
.card-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.team-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.team-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(128, 0, 255, 0.3));
    border: 2px solid rgba(255, 0, 255, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-avatar i {
    font-size: 22px;
    color: #ff9dff;
}

.team-details {
    flex: 1;
}

.team-name {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 4px 0;
}

.team-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.2), rgba(255, 150, 0, 0.1));
    border: 1px solid rgba(255, 200, 0, 0.4);
    color: #ffd700;
}

.status-approved {
    background: linear-gradient(135deg, rgba(0, 255, 150, 0.2), rgba(0, 200, 100, 0.1));
    border: 1px solid rgba(0, 255, 150, 0.4);
    color: #00ff9d;
}

.status-rejected {
    background: linear-gradient(135deg, rgba(255, 0, 100, 0.2), rgba(255, 0, 50, 0.1));
    border: 1px solid rgba(255, 0, 100, 0.4);
    color: #ff4d7d;
}

/* Card Divider */
.card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.3), transparent);
    margin: 15px 0;
}

/* Amount Section */
.amount-section {
    background: rgba(255, 0, 255, 0.08);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.amount-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.amount-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

/* Action Buttons */
.action-section {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-approve {
    background: linear-gradient(135deg, #00ff9d, #00cc7a);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 157, 0.5);
    color: #000;
}

.btn-reject {
    background: linear-gradient(135deg, #ff4d7d, #cc003d);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 77, 125, 0.3);
}

.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 77, 125, 0.5);
    color: #fff;
}

.completed-badge {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 14px;
}

.completed-badge i {
    margin-right: 8px;
    color: #00ff9d;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 0, 255, 0.2);
    border-radius: 16px;
}

.empty-state i {
    font-size: 64px;
    color: rgba(255, 0, 255, 0.3);
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #fff;
    margin-bottom: 10px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .report-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-content {
        width: 100%;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .report-title {
        font-size: 22px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .action-section {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .payment-report-container {
        padding: 15px;
    }
    
    .report-header {
        padding: 20px;
    }
    
    .payment-card {
        padding: 15px;
    }
    
    .team-name {
        font-size: 16px;
    }
    
    .amount-value {
        font-size: 20px;
    }
}

/* =====================================
   MODERN TEAM REPORT STYLING
   ===================================== */

.team-report-container {
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Header Section */
.report-header {
    background: linear-gradient(135deg, rgba(120, 0, 255, 0.2), rgba(255, 0, 255, 0.15));
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(255, 0, 255, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff00ff, #8000ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.4);
}

.icon-wrapper i {
    font-size: 28px;
    color: white;
}

.report-title {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.report-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0 0;
    font-size: 14px;
}

.header-stats {
    display: flex;
    gap: 15px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
}

.stat-pending {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 0, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    border-color: #ff00ff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff00ff, #8000ff);
    border-color: #ff00ff;
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.5);
}

/* Team Cards Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.team-card {
    background: linear-gradient(180deg, rgba(80, 0, 150, 0.25), rgba(40, 0, 80, 0.35));
    border: 2px solid rgba(255, 0, 255, 0.25);
    border-radius: 18px;
    padding: 25px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff00ff, #8000ff, #ff00ff);
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: #ff00ff;
    box-shadow: 0 12px 40px rgba(255, 0, 255, 0.5);
}

.team-card:hover::before {
    opacity: 1;
}

/* Card Number Badge */
.card-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 0, 255, 0.2);
    border: 1px solid rgba(255, 0, 255, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #ff9dff;
}

/* Status Badge Top */
.status-badge-top {
    position: absolute;
    top: 15px;
    right: 15px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.25), rgba(255, 150, 0, 0.15));
    border: 1px solid rgba(255, 200, 0, 0.5);
    color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 200, 0, 0.3);
}

.status-approved {
    background: linear-gradient(135deg, rgba(0, 255, 150, 0.25), rgba(0, 200, 100, 0.15));
    border: 1px solid rgba(0, 255, 150, 0.5);
    color: #00ff9d;
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.3);
}

.status-rejected {
    background: linear-gradient(135deg, rgba(255, 0, 100, 0.25), rgba(255, 0, 50, 0.15));
    border: 1px solid rgba(255, 0, 100, 0.5);
    color: #ff4d7d;
    box-shadow: 0 0 15px rgba(255, 0, 100, 0.3);
}

/* Team Header */
.team-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
    margin-bottom: 20px;
}

.team-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-icon i {
    font-size: 24px;
    color: #ffd700;
}

.team-name {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Card Divider */
.card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.3), transparent);
    margin: 18px 0;
}

/* Info Row */
.info-row {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
}

.info-row i {
    font-size: 20px;
    color: #ff9dff;
    margin-top: 2px;
}

.info-row > div {
    flex: 1;
}

.info-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-value {
    display: block;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.email-text {
    word-break: break-all;
    font-size: 13px;
}

/* Members Section */
.members-section {
    background: rgba(120, 0, 255, 0.08);
    border: 1px solid rgba(120, 0, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 14px;
    color: #ff9dff;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-weight: bold;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

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

.member-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.member-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(128, 0, 255, 0.3));
    border: 2px solid rgba(255, 0, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.member-avatar i {
    font-size: 18px;
    color: #d9b3ff;
}

.member-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff00ff, #8000ff);
    border: 2px solid rgba(40, 0, 80, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
}

.member-info {
    flex: 1;
}

.member-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.member-name {
    display: block;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

/* Action Buttons */
.action-section {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-approve {
    background: linear-gradient(135deg, #00ff9d, #00cc7a);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 157, 0.5);
    color: #000;
}

.btn-reject {
    background: linear-gradient(135deg, #ff4d7d, #cc003d);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 77, 125, 0.3);
}

.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 77, 125, 0.5);
    color: #fff;
}

.completed-badge {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 14px;
}

.completed-badge i {
    margin-right: 8px;
    color: #00ff9d;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 0, 255, 0.2);
    border-radius: 16px;
}

.empty-state i {
    font-size: 64px;
    color: rgba(255, 0, 255, 0.3);
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #fff;
    margin-bottom: 10px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .report-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
        width: 100%;
    }
    
    .header-stats {
        width: 100%;
        justify-content: center;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .report-title {
        font-size: 22px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .filter-tabs {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .team-report-container {
        padding: 15px;
    }
    
    .report-header {
        padding: 20px;
    }
    
    .team-card {
        padding: 20px;
    }
    
    .team-name {
        font-size: 18px;
    }
    
    .action-section {
        flex-direction: column;
    }
    
    .stat-box {
        padding: 12px 20px;
    }
    
    .tab-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* =============================== */
/*        DETAIL TEAM STYLE        */
/* =============================== */

.team-detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 10px;
}

.back-btn {
    padding: 10px 18px;
    background: #1e1e1e;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: 0.2s;
    border: 1px solid #333;
}

.back-btn:hover {
    background: #333;
    transform: translateX(-3px);
}

/* CARD */
.detail-card {
    background: #0f0f0f;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
    border: 1px solid #1f1f1f;
}

/* HEADER */
.detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.detail-icon {
    font-size: 45px;
    color: #00b7ff;
    text-shadow: 0 0 10px rgba(0, 183, 255, .6);
}

.detail-header h2 {
    margin: 0;
    color: #fff;
}

.badge-status {
    padding: 7px 14px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: auto;
    color: #fff;
    font-size: 14px;
}

.badge-status.pending { background: #ffc107; color:#000; }
.badge-status.valid { background: #28a745; }
.badge-status.invalid { background: #dc3545; }

/* SECTION */
.section-title {
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 20px;
    color: #00d4ff;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 212, 255, .4);
}

/* DETAIL ROW */
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #333;
    color: #ddd;
}

.detail-row span {
    color: #aaa;
}

.detail-row b {
    color: #fff;
}

/* SUB SECTION */
.sub-section {
    background: #151515;
    padding: 18px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid #222;
}

.sub-section h4 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 17px;
    border-left: 4px solid #00aaff;
    padding-left: 10px;
}

/* FILE BUTTON */
.file-btn {
    color: #00b7ff;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dashed #00b7ff;
    transition: 0.2s;
}

.file-btn:hover {
    color: #00eaff;
    border-bottom-color: #00eaff;
}

/* FOTO PREVIEW */
.foto-preview {
    width: 110px;
    border-radius: 12px;
    border: 2px solid #00c2ff;
    box-shadow: 0 0 12px rgba(0, 194, 255, .3);
}

/* ===========================================
   DETAIL MODAL STYLES - ENHANCED VERSION
   =========================================== */

/* Detail Button */
.btn-detail {
    background: linear-gradient(45deg, #17a2b8, #138496);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-detail:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-detail:hover {
    background: linear-gradient(45deg, #138496, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
    color: white;
}

.btn-detail:hover:before {
    left: 100%;
}

.btn-detail:focus {
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
    color: white;
}

/* Detail Modal Content Override */
.modal-content {
    background: linear-gradient(145deg, #1e1e2f, #2a2a3e) !important;
    border: 2px solid #ff00ff !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 35px rgba(255, 0, 255, 0.3) !important;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.1);
}

.section-title {
    color: #00ffff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(0, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateX(5px);
}

.info-item.highlight {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.3);
}

.info-label {
    color: #b0b0b0;
    font-weight: 500;
    font-size: 0.95rem;
}

.info-value {
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}

.info-value.amount {
    color: #00ff00;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.status-badge-modern {
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-modern.pending {
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.status-badge-modern.approved {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.status-badge-modern.rejected {
    background: linear-gradient(45deg, #dc3545, #e74c3c);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.time-badge {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff00ff, transparent);
    margin: 25px 0;
    border-radius: 1px;
}

/* Payment Proof Styles */
.proof-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    backdrop-filter: blur(10px);
}

.proof-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.proof-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.proof-image:hover {
    transform: scale(1.05);
}

.proof-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
    font-size: 0.9rem;
}

.proof-container:hover .proof-overlay {
    opacity: 1;
}

.proof-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #00ffff;
}

.proof-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.btn-proof-action {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-proof-action:hover {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.3);
}

.no-proof {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-proof i {
    font-size: 3rem;
    color: #ffa500;
    margin-bottom: 15px;
    display: block;
}

.no-proof p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ccc;
}

.no-proof small {
    color: #888;
    font-style: italic;
}

/* Modern Button Styles */
.modern-btn {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-btn:hover:before {
    left: 100%;
}

.btn-secondary.modern-btn {
    background: linear-gradient(45deg, #6c757d, #5a6268);
}

.btn-success.modern-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.btn-danger.modern-btn {
    background: linear-gradient(45deg, #dc3545, #e74c3c);
}

/* Modal Header & Footer Override */
.modal-header {
    border-bottom: 2px solid #ff00ff !important;
    background: rgba(255, 0, 255, 0.1) !important;
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff;
}

.text-cyan {
    color: #00ffff !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.modal-footer {
    background: rgba(255, 0, 255, 0.05) !important;
    border-top: 1px solid rgba(255, 0, 255, 0.2) !important;
}

/* Image Modal for Full View */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal img {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(255, 0, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-dialog.modal-xl {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .info-grid {
        gap: 10px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .info-value {
        text-align: center;
    }
    
    .proof-image {
        height: 200px;
    }
    
    .proof-actions {
        flex-direction: row;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
}
/* ==== FIX BACKGROUND NUTUP KONTEN ==== */
.stars,
.nebula,
.overlay-gradient {
    position: fixed !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}


/* ===========================
   FIX UTAMA LAYOUT SB-ADMIN
   =========================== */

/* Wrapper harus flex & full layout */
#wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden !important; /* Stop geser kanan */
}

/* Sidebar fix — tidak mengecil */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
}

/* Content wrapper mengikuti sisa ruang */
#content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden !important;
}

/* Hilangkan width calc yg merusak */
#content-wrapper,
.topbar {
    width: 100% !important;
    margin: 0 !important;
}

/* ===========================
   FIX TOPBAR TERPUTUS
   =========================== */
.topbar {
    position: relative;
    z-index: 30;
    background: #45464e  !important; /* biar lebih solid */
    backdrop-filter: blur(4px);
}

/* Garis bawah topbar biar full 100% */
.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #c400ff;
}

/* ===========================
   FIX CONTENT AGAR RAPI
   =========================== */
#content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Hapus semua margin aneh yang kamu buat */
.topbar,
#content-wrapper,
#content {
    margin-left: 0 !important;
}

/* ===========================
   RESPONSIVE FIX
   =========================== */

   
/* ===== MOBILE DROPDOWN MENU (Bukan Sidebar Samping) ===== */
@media (max-width: 768px) {

    /* TOPBAR: Fixed di atas */
    .topbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1030 !important;
        height: 60px;
    }

    /* Garis ungu dekoratif di bawah topbar */
    .topbar::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #c400ff, #00d4ff);
    }

    /* SIDEBAR: Jadi dropdown menu di bawah topbar */
    .sidebar {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 0 !important;
        overflow: hidden !important; /* Hidden saat tertutup */
        z-index: 1025 !important; /* PENTING: Lebih tinggi dari overlay */
        transition: max-height 0.4s ease, opacity 0.3s ease !important;
        opacity: 0 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    /* Sidebar muncul ke BAWAH saat di-toggle */
    body.sidebar-toggled .sidebar {
        max-height: calc(100vh - 60px) !important;
        opacity: 1 !important;
        overflow-y: auto !important; /* PENTING: Auto agar bisa scroll dan collapse muncul */
        overflow-x: visible !important; /* Visible untuk submenu */
    }

    /* OVERLAY backdrop saat menu terbuka - z-index 0 */
    body.sidebar-toggled::before {
        content: "";
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 0; /* PENTING: z-index 0 biar sidebar di atas */
        animation: fadeIn 0.3s;
        pointer-events: auto;
    }
    
    /* Sidebar tetap di atas overlay */
    body.sidebar-toggled .sidebar {
        z-index: 1025 !important; /* Tetap lebih tinggi */
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* CONTENT: Beri ruang untuk topbar */
    #wrapper {
        padding-top: 60px !important;
    }

    #content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }

    #content {
        padding: 1rem !important;
    }

    /* Hamburger button styling */
    #sidebarToggleTop {
        background: transparent !important;
        border: none !important;
        padding: 0.5rem !important;
    }

    #sidebarToggleTop i {
        font-size: 1.5rem;
        color: white;
        transition: transform 0.3s ease;
    }

    /* Rotasi icon hamburger saat menu terbuka */
    body.sidebar-toggled #sidebarToggleTop i {
        transform: rotate(90deg);
    }

    /* Sidebar brand - tetap tampil */
    .sidebar-brand {
        padding: 1rem !important;
    }

    /* Menu items styling untuk mobile - OVERRIDE PAKSA dengan selector super spesifik */
    ul#accordionSidebar.navbar-nav.sidebar li.nav-item,
    ul.navbar-nav.bg-gradient-primary.sidebar.sidebar-dark.accordion li.nav-item,
    .sidebar.sidebar-dark.accordion .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        overflow: visible !important;
        position: relative !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }
    
    /* Nav link juga harus auto height */
    ul#accordionSidebar li.nav-item > a.nav-link,
    .sidebar .nav-item > .nav-link {
        padding: 1rem 1.5rem !important;
        font-size: 0.95rem;
        position: relative !important;
        height: auto !important;
        min-height: 3rem;
    }

    /* FIX: Submenu/Collapse items - pastikan bisa muncul */
    .sidebar .collapse {
        background: rgba(0, 0, 0, 0.2);
        display: none; /* Default hidden */
        overflow: visible !important; /* PENTING: visible agar submenu muncul */
        position: relative !important; /* Buat stacking context */
        z-index: 1 !important;
        height: auto !important;
    }

    .sidebar .collapse.show {
        display: block !important; /* Muncul saat di-expand */
        visibility: visible !important;
        height: auto !important;
        max-height: 9999px !important; /* Paksa tinggi maksimal */
    }

    .sidebar .collapse .collapse-inner {
        padding: 0.5rem 0 !important;
        border-radius: 0.35rem;
        margin: 0.5rem 1rem;
        position: relative !important;
        z-index: 2 !important;
        height: auto !important;
    }

    .sidebar .collapse-item {
        display: block !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8) !important;
        text-decoration: none;
        position: relative !important;
        z-index: 3 !important;
    }

    .sidebar .collapse-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    /* Arrow icon untuk menu yang punya submenu */
    .sidebar .nav-link[data-toggle="collapse"]::after {
        transition: transform 0.3s ease;
    }

    .sidebar .nav-link[data-toggle="collapse"]:not(.collapsed)::after {
        transform: rotate(180deg);
    }

    /* Sembunyikan desktop sidebar toggler */
    .sidebar .text-center.d-none.d-md-inline {
        display: none !important;
    }

    /* Container full width di mobile */
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

}

/* UNTUK LAYAR SANGAT KECIL (<576px) */
@media (max-width: 576px) {
    
    /* Sembunyikan username, cuma tampilkan foto */
    .topbar .navbar-nav .nav-link span.d-none.d-lg-inline {
        display: none !important;
    }

    /* Sidebar brand text lebih kecil */
    .sidebar-brand-text {
        font-size: 0.9rem !important;
    }

    /* Menu items lebih compact */
    .sidebar .nav-link {
        padding: 0.85rem 1rem !important;
        font-size: 0.9rem;
    }

}

/* FIX: Pastikan tidak ada transform di desktop */
@media (min-width: 769px) {
    .sidebar {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
    }
}

.card-neon {
    position: relative;   /* biar elemen lain nggak nutup */
    z-index: 10;          /* naikkan ke atas */
}

.card-neon a {
    position: relative; 
    z-index: 20;          /* pastikan link paling atas */
    display: inline-block;
}
