:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #f1f5f9;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Full Flexbox Layout System */
.dashboard-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
    position: relative;
}

.sidebar-container-wrap {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    position: relative;
    z-index: 100;
}

.sidebar-container-wrap .sidebar,
.sidebar-container-wrap .sidebar-wrapper,
.sidebar-container-wrap aside {
    width: 260px !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 100 !important;
}

/* Fleksibel Penuh ke Layar (Full Width) */
.main-content-area {
    flex-grow: 1;
    background-color: var(--bg-body);
    width: calc(100% - 260px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .sidebar-container-wrap {
        width: 0;
        min-width: 0;
    }
    .sidebar-container-wrap .sidebar,
    .sidebar-container-wrap .sidebar-wrapper,
    .sidebar-container-wrap aside {
        left: -260px !important;
        transition: left 0.3s ease !important;
        z-index: 1050 !important;
    }
    .sidebar-container-wrap .sidebar.show,
    .sidebar-container-wrap .sidebar-wrapper.show,
    .sidebar-container-wrap aside.show {
        left: 0 !important;
    }
    .main-content-area {
        width: 100% !important;
        padding: 1rem;
    }
    .sidebar-backdrop.show {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: block;
    }
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* Kartu Utama Melebar Penuh (Full Width Fluid) */
.card-fluid-full {
    background: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.03);
    width: 100% !important;
    max-width: 100% !important;
}

.menu-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    cursor: pointer;
    width: 100%;
}

.menu-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 1);
    border-color: #cbd5e1;
    box-shadow: 0 12px 20px -10px rgba(15, 23, 42, 0.08);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.folder-header {
    background: rgba(241, 245, 249, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-top: 1rem;
    user-select: none;
}

.folder-header:hover {
    background: rgba(226, 232, 240, 0.8);
    color: var(--text-main);
}

.folder-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.folder-title-wrapper::before {
    content: '';
    width: 3px;
    height: 14px;
    background-color: #3b82f6;
    border-radius: 2px;
}

.glass-modal-content {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 24px !important;
}

.glass-card-form {
    background: rgba(248, 250, 252, 0.7) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 16px !important;
}

.glass-input {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
}

.glass-table-container {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    overflow: hidden;
}

.logo-clean-container {
    display: inline-block;
    padding: 4px 12px 4px 4px;
}

.logo-clean {
    height: 48px;
    width: auto;
    max-width: none;
    border-radius: 8px;
    box-shadow: none !important;
    filter: none !important;
    transition: transform 0.2s ease;
}

.logo-clean:hover {
    transform: scale(1.02);
}

.bg-danger-soft { background: #fee2e2; color: #dc2626; }
.bg-primary-soft { background: #e0e7ff; color: #4f46e5; }
.bg-info-soft { background: #e0f2fe; color: #0284c7; }
.bg-success-soft { background: #dcfce7; color: #16a34a; }
.bg-warning-soft { background: #fef3c7; color: #d97706; }
.bg-secondary-soft { background: #f1f5f9; color: #475569; }
.bg-tailscale-soft { background: #e0f2fe; color: #0369a1; }
.bg-zerotier-soft { background: #ffe4e6; color: #e11d48; }
.bg-purple-soft { background: #f3e8ff; color: #9333ea; }
.bg-orange-soft { background: #ffedd5; color: #c2410c; }

/* Memastikan area konten utama mengambil seluruh sisa lebar layar secara fleksibel */
.main-content-area {
    flex-grow: 1;
    background-color: var(--bg-body);
    width: calc(100% - 260px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

/* Memastikan kartu pembungkus menu utama meregang penuh 100% tanpa batas max-width */
.card-fluid-full {
    background: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.03);
    width: 100% !important;
    max-width: 100% !important;
}


/* --- CSS PEMAKSA FULL WIDTH 100% --- */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.dashboard-wrapper {
    display: flex !important;
    width: 100vw !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-container-wrap {
    width: 260px !important;
    min-width: 260px !important;
    flex: 0 0 260px !important;
}

.main-content-area {
    flex: 1 1 auto !important;
    width: calc(100% - 260px) !important;
    max-width: none !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.card-fluid-full {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

@media (max-width: 991.98px) {
    .sidebar-container-wrap {
        width: 0 !important;
        min-width: 0 !important;
        flex: 0 0 0 !important;
    }
    .main-content-area {
        width: 100% !important;
    }
}

/* Memastikan wrapper dashboard mengisi seluruh layar */
.dashboard-wrapper {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Area konten utama mengambil sisa ruang flex */
.main-content-area {
    flex: 1;
    width: 100%;
    padding: 15px; /* Sesuaikan padding jika ingin lebih longgar */
}

/* Menghilangkan batasan lebar maksimal pada container putih */
.card-fluid-full {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}