:root {
    /* Color Palette - Premium Light Theme */
    --bg-main: #F1F5F9;
    --bg-secondary: #FFFFFF;
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    
    /* Status Colors */
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.1);
    
    --sidebar-width: 260px;
    --header-height: 80px;
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

/* Dark Mode Theme Variables */
[data-theme="dark"] {
    --bg-main: #0F172A;
    --bg-secondary: #1E293B;
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(30, 41, 59, 0.85);
    --primary: #3B82F6;
    --primary-hover: #60A5FA;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    
    --success-bg: rgba(16, 185, 129, 0.15);
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger-bg: rgba(239, 68, 68, 0.15);
    --info-bg: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] body {
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

[data-theme="dark"] .btn-outline {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-outline:hover {
    background: #334155;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .table-responsive {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .data-table thead th {
    background: rgba(15, 23, 42, 0.8);
    color: #F8FAFC;
    border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .data-table tbody td {
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .data-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .input-control,
[data-theme="dark"] .select-input {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .input-control:focus,
[data-theme="dark"] .select-input:focus {
    background: rgba(15, 23, 42, 0.9);
}

[data-theme="dark"] .custom-dropdown-list {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .custom-dropdown-list li {
    color: #F8FAFC;
}

[data-theme="dark"] .custom-dropdown-list li:hover {
    background: var(--primary);
}

/* Custom Dropdown for SKPD Autocomplete */
.custom-dropdown-container {
    position: relative;
}
.custom-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    z-index: 100;
    list-style: none;
    margin-top: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    padding: 0;
}
.custom-dropdown-list.hidden {
    display: none;
}
.custom-dropdown-list li {
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
    color: #0F172A;
    font-size: 14px;
}
.custom-dropdown-list li:hover {
    background: var(--primary);
    color: white;
}

/* Make input look like select */
.select-input-styled {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' style='fill: %2394A3B8;'%3E%3Cpath d='M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    /* Subtle background gradient */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    z-index: 100;
    color: #F8FAFC;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 24px 24px 24px;
    gap: 12px;
}

.donggala-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
    transition: transform 0.3s ease;
}

.donggala-logo:hover {
    transform: scale(1.1);
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    margin-top: 10px;
    flex: 1;
    overflow-y: auto;
}

.nav-links::-webkit-scrollbar {
    width: 4px;
}

.nav-links::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-links li {
    padding: 8px 16px;
}

.nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #94A3B8;
    padding: 12px 16px;
    border-radius: 12px;
    transition: var(--transition);
    gap: 16px;
    font-weight: 500;
}

.nav-links li a i {
    font-size: 20px;
}

.nav-links li:hover a {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links li.active a {
    color: #F8FAFC;
    background: rgba(59, 130, 246, 0.15);
    border-left: 3px solid var(--primary);
}

/* Cascading Menu Styles */
.nav-links li .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-links li.showMenu .arrow {
    transform: rotate(-180deg);
}

.nav-links li .sub-menu {
    display: none;
    background: transparent;
    margin: 4px 16px 4px 32px;
    list-style: none;
    overflow: hidden;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 8px;
}

.nav-links li.showMenu .sub-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-links li .sub-menu li {
    padding: 0;
    margin-bottom: 4px;
}

.nav-links li .sub-menu a {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 8px;
    border-left: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94A3B8;
    transition: var(--transition);
}

.nav-links li .sub-menu a i {
    font-size: 18px;
}

.nav-links li .sub-menu li:hover a {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links li .sub-menu li.active a {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
}

.profile-details {
    padding: 20px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-content img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.name-job .profile_name {
    font-size: 14px;
    font-weight: 600;
}

.name-job .job {
    font-size: 12px;
    color: var(--text-secondary);
}

.logout-icon {
    margin-left: auto;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.logout-icon:hover {
    color: var(--danger);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: transparent;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-title i {
    font-size: 24px;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
    padding: 8px;
    border-radius: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 16px;
    border-radius: 12px;
    width: 350px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.search-box.small {
    width: 250px;
}

.search-box i {
    color: var(--text-secondary);
    font-size: 20px;
    margin-right: 12px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-main);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background: #F8FAFC;
    border-color: rgba(0, 0, 0, 0.25);
}

/* Views */
.view-container {
    padding: 0 40px 40px 40px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

#dashboard-view::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-image: url('logo-donggala.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

#dashboard-view > * {
    position: relative;
    z-index: 1;
}

.view-container::-webkit-scrollbar {
    width: 6px;
}

.view-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.hidden {
    display: none !important;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

/* Brand Logos */
.brand-logos-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.brand-logos-container:hover {
    transform: translateY(-1px);
}

.brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

[data-theme="dark"] .brand-logos-container {
    background: transparent;
    border: none;
    box-shadow: none;
}

[data-theme="dark"] .brand-logo {
    filter: invert(1) hue-rotate(180deg) brightness(1.2) drop-shadow(0px 1px 2px rgba(255, 255, 255, 0.15));
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stats-grid.opd-grid {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1200px) {
    .stats-grid.opd-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .stats-grid,
    .stats-grid.opd-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.box-blue { background: var(--info-bg); color: var(--info); }
.box-orange { background: var(--warning-bg); color: var(--warning); }
.box-red { background: var(--danger-bg); color: var(--danger); }
.box-green { background: var(--success-bg); color: var(--success); }
.box-purple { background: rgba(168, 85, 247, 0.15); color: rgb(168, 85, 247); }
.box-teal { background: rgba(20, 184, 166, 0.15); color: rgb(20, 184, 166); }

.stat-details h3 {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-container {
    padding: 24px;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Tables */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

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

.data-table thead th {
    background: rgba(59, 130, 246, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1E293B;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    padding: 14px 16px;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 13px;
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.15);
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-rusak { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.status-rusak::before { background: #EF4444; }

.status-kadaluwarsa { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.status-kadaluwarsa::before { background: #8B5CF6; }

.status-hilang { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.status-hilang::before { background: #F59E0B; }

.status-ganda { background: rgba(20, 184, 166, 0.1); color: #14B8A6; }
.status-ganda::before { background: #14B8A6; }

.status-peralihan { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.status-peralihan::before { background: #3B82F6; }

/* Data Panel */
.data-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.filter-bar {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    gap: 16px;
    align-items: center;
}

.select-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' style='fill: %23475569;'%3E%3Cpath d='M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.select-input option {
    background: #FFFFFF;
    color: #1E293B;
}

.pagination {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
}

.page-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.page-buttons {
    display: flex;
    gap: 8px;
}

.page-buttons .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.page-buttons .btn-icon.active {
    background: var(--primary);
    border-color: var(--primary);
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--primary);
}

.action-btn.delete:hover {
    color: var(--danger);
}

/* Forms */
.form-panel {
    padding: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-control {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.input-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-control.is-invalid {
    border-color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.03) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

[data-theme="dark"] .input-control.is-invalid {
    border-color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.input-control::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

select.input-control {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' style='fill: %2394A3B8;'%3E%3Cpath d='M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

select.input-control option {
    background: #FFFFFF;
    color: #0F172A;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

/* =========================================
   LOGIN PAGE STYLES
   ========================================= */
.login-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--bg-main);
}

.login-card {
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: row;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    animation: slideUpFade 0.6s ease forwards;
    overflow: hidden;
}

/* Brand Section - Left Side of Landscape Layout */
.login-brand-section {
    width: 45%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.login-brand-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.login-brand-logo {
    width: 85px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
    transition: transform 0.3s ease;
}

.login-brand-logo:hover {
    transform: scale(1.08);
}

.login-brand-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.login-brand-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.login-brand-desc {
    font-size: 12.5px;
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.login-brand-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-badge-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(0.85) drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Form Section - Right Side of Landscape Layout */
.login-form-section {
    width: 55%;
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-header {
    margin-bottom: 24px;
}

.login-form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-form-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.login-form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 11.5px;
    color: var(--text-secondary);
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
.mobile-close-sidebar {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-close-sidebar:hover {
    color: var(--danger);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 12px;
}

/* Sidebar Overlay background */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .app-container {
        position: relative;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-close-sidebar {
        display: block;
    }

    /* Sidebar Overlay */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 100;
        transition: left 0.3s ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        left: 0;
    }

    /* Header Adjustments */
    header {
        padding: 0 20px;
        height: 70px;
    }
    
    .header-title span {
        display: none;
    }

    .header-title i {
        font-size: 20px;
        padding: 6px;
    }

    .search-box {
        display: none;
    }

    .view-container {
        padding: 0 20px 20px 20px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-subtitle {
        font-size: 13px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .brand-logos-container {
        width: auto;
        padding: 0;
        gap: 12px;
    }

    .brand-logo {
        height: 28px;
    }

    /* Grids to single column */
    .stats-grid,
    .stats-grid.opd-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Step 1 adjustments */
    #step-1-skpd > div {
        flex-direction: column;
    }
    
    #step-1-skpd > div > div {
        padding-right: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    /* Step 2 Header Fix */
    #step-2-aset > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    
    /* Login Mobile Adjustments */
    .login-card {
        flex-direction: column;
        max-width: 420px;
        margin: 20px;
        border-radius: 20px;
    }
    .login-brand-section {
        width: 100%;
        padding: 30px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .login-brand-desc {
        display: none;
    }
    .login-brand-subtitle {
        margin-bottom: 10px;
    }
    .login-form-section {
        width: 100%;
        padding: 30px 24px;
    }
}

/* =========================================
   TAB SYSTEM FOR LIST VIEW
   ========================================= */
.tab-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    padding-left: 4px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Status Badges for Pemeliharaan */
.status-ringan { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.status-ringan::before { background: #10B981; }

.status-sedang { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.status-sedang::before { background: #F59E0B; }

.status-berat { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.status-berat::before { background: #EF4444; }

