/* 
   WIN Hub - Smart Electrical Service Platform
   Custom CSS Styling System (Modern Electric Theme)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #004AAD;       /* Deep Electric Blue */
    --primary-glow: rgba(0, 74, 173, 0.4);
    --secondary: #FF6B00;     /* Electric Orange */
    --secondary-glow: rgba(255, 107, 0, 0.4);
    --success: #10B981;       /* Emerald Green */
    --warning: #F59E0B;       /* Amber Gold */
    --danger: #EF4444;        /* Crimson Red */
    
    /* Dark Theme (Default for Enterprise Portal) */
    --bg-dark: #070B19;
    --card-dark: rgba(16, 22, 47, 0.7);
    --card-border-dark: rgba(255, 255, 255, 0.08);
    --text-dark: #E2E8F0;
    --text-muted-dark: #94A3B8;
    
    /* Light Theme (Alternative for Landing Page / Printing) */
    --bg-light: #F8FAFC;
    --card-light: rgba(255, 255, 255, 0.85);
    --card-border-light: rgba(0, 74, 173, 0.08);
    --text-light: #0F172A;
    --text-muted-light: #64748B;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: var(--transition);
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6, .brand-title {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
.dark-mode ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* --- LANDING PAGE STYLES --- */
#landing-page {
    background-image: url('Gambar/hero_bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 88% auto;
    background-color: #D1ECFD;
    min-height: 100vh;
    position: relative;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 74, 173, 0.04);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 52px;
    object-fit: contain;
}

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

.brand-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: 0.3px;
}

.brand-title span {
    color: var(--secondary);
}

.brand-subtitle {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted-light);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 14px;
    color: #4A5568;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-portal-access {
    background: linear-gradient(135deg, var(--primary) 0%, #003680 100%);
    color: white !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 13px;
}

.btn-portal-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.35);
    background: linear-gradient(135deg, var(--secondary) 0%, #E05E00 100%);
}

/* Landing Hero Section */
.hero-section {
    padding: 140px 8% 80px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: #0B1E43;
    line-height: 1.15;
    margin-bottom: 20px;
}

.highlight-blue {
    color: var(--primary);
}

.highlight-orange {
    color: var(--secondary);
}

.hero-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 30px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.primary-hero-btn {
    border-radius: 8px !important;
    padding: 12px 28px !important;
    font-size: 14px;
}

.btn-secondary {
    background: white;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(0, 74, 173, 0.05);
    transform: translateY(-2px);
}

.hero-badges {
    display: flex;
    gap: 20px;
}

.hero-badges span {
    font-size: 13px;
    font-weight: 600;
    color: #4A5568;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-badges span i {
    color: var(--primary);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Device Laptop / Phone Mockup Styles */
.device-mockup-container {
    position: relative;
    width: 100%;
    max-width: 660px;
    padding: 20px 0;
}

.laptop-mockup {
    position: relative;
    width: 100%;
    margin-left: 0;
}

.laptop-screen {
    background: #000;
    border: 10px solid #1E293B;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
}

.laptop-keyboard {
    height: 10px;
    background: #CBD5E1;
    border-radius: 0 0 10px 10px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.laptop-keyboard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #64748B;
    border-radius: 0 0 4px 4px;
}

/* Light Laptop Dashboard Mini Preview */
.mini-dashboard-preview {
    background: #F8FAFC;
    width: 100%;
    height: 100%;
    display: flex;
    color: #1E293B;
    font-size: 6px;
    padding: 0;
}

.mini-db-sidebar {
    width: 52px;
    background: #004AAD;
    color: white;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}

.mini-db-sidebar-logo {
    font-weight: 800;
    font-size: 5px;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
    font-family: 'Outfit';
    color: white;
}

.mini-db-sidebar-logo img {
    height: 5px;
}

.mini-db-menu-item {
    font-size: 4px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.mini-db-menu-item.active {
    color: white;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
}

.mini-db-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: #F8FAFC;
}

.mini-db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 3px;
    margin-bottom: 5px;
    color: #1E293B;
}

.mini-db-title {
    font-weight: 700;
    font-size: 6px;
    font-family: 'Outfit';
}

.mini-db-header-right {
    display: flex;
    align-items: center;
}

.mini-db-user {
    color: #64748B;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
}

.mini-db-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 5px;
}

.mini-stat-box {
    background: white;
    border: 1px solid #E2E8F0;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    color: #1E293B;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.mini-stat-box span {
    color: #64748B;
    font-size: 4px;
    transform: scale(0.95);
    transform-origin: left;
}

.mini-stat-box strong {
    font-size: 7px;
    margin-top: 1px;
    font-weight: 800;
}

.mini-db-charts-row {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 4px;
    flex-grow: 1;
}

.mini-chart-left, .mini-chart-right {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    color: #1E293B;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.mini-chart-left span, .mini-chart-right span {
    color: #64748B;
    font-weight: 600;
    font-size: 4px;
    margin-bottom: 3px;
}

.mini-chart-lines {
    position: relative;
    flex-grow: 1;
    border-left: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    margin-top: 2px;
}

.mini-chart-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.mini-line-point {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--secondary);
    z-index: 5;
}

.mini-donut-chart {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #E2E8F0;
    border-top-color: var(--primary);
    border-right-color: var(--success);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mini-donut-center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3px;
}

.mini-donut-center strong {
    font-weight: 800;
    font-size: 4px;
}

.mini-donut-center small {
    transform: scale(0.65);
    color: #64748B;
    margin-top: -1px;
}

/* Overlapping Phone Mockup */
.phone-mockup {
    position: absolute;
    width: 125px;
    aspect-ratio: 9/19;
    background: #000;
    border: 3px solid #1E293B;
    border-radius: 14px;
    bottom: -20px;
    right: 2%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    z-index: 50;
    overflow: hidden;
}

.phone-screen {
    background: #004AAD;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 5px;
    padding: 6px;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 3px;
    margin-bottom: 5px;
}

.phone-welcome {
    margin-bottom: 6px;
}

.phone-welcome span {
    font-weight: 700;
    display: block;
    font-size: 6px;
}

.phone-welcome small {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    transform: scale(0.9);
    transform-origin: left;
}

.phone-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-bottom: 6px;
}

.phone-menu-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 2px;
    border-radius: 3px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-menu-item i {
    font-size: 6px;
    margin-bottom: 2px;
    color: var(--secondary);
}

.phone-menu-item small {
    transform: scale(0.8);
    color: white;
    font-size: 4px;
    font-weight: 500;
}

.phone-task-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px;
}

.ptc-header {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 5px;
}

.ptc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    font-size: 4px;
}

.ptc-status {
    padding: 1px 3px;
    border-radius: 2px;
    transform: scale(0.9);
    font-weight: 700;
}

.ptc-status.green { background: rgba(16,185,129,0.3); color: #34D399; }
.ptc-status.orange { background: rgba(255,107,0,0.3); color: #FF9F43; }

/* Service Section Mockup Design */
.section-tag-red {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-align: center;
}

.section-title-new {
    font-size: 32px;
    font-weight: 800;
    color: #0B1E43;
    text-align: center;
    margin-bottom: 45px;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card-new {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 74, 173, 0.06);
    border-color: rgba(0, 74, 173, 0.15);
}

.service-circle {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
}

.sc-blue { background: rgba(0, 74, 173, 0.1); color: var(--primary); }
.sc-green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.sc-orange { background: rgba(255, 107, 0, 0.1); color: var(--secondary); }
.sc-red { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.sc-purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.sc-teal { background: rgba(20, 184, 166, 0.1); color: #14B8A6; }

.service-card-new h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0B1E43;
    margin-bottom: 12px;
}

.service-card-new p {
    font-size: 14px;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.service-card-new:hover .service-link {
    color: var(--secondary);
}

/* Advantages Grid Styling */
.advantages-section {
    padding: 80px 8%;
    background: #F8FAFC;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.advantage-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 74, 173, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.advantage-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0B1E43;
    margin-bottom: 6px;
}

.advantage-text p {
    font-size: 13px;
    color: #4A5568;
    line-height: 1.5;
}

/* Dashboard Monitoring Section Styling */
.monitoring-section {
    padding: 80px 8%;
    background: white;
}

.monitoring-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.monitoring-desc {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 25px;
}

.monitoring-list {
    list-style: none;
}

.monitoring-list li {
    font-size: 14px;
    font-weight: 600;
    color: #0B1E43;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.monitoring-list li i {
    color: var(--primary);
    font-size: 16px;
}

/* High Fidelity Interactive Dashboard Preview Card */
.ui-mockup-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    padding: 20px;
    width: 100%;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.m-logo {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit';
}

.m-user {
    font-size: 11px;
    color: #4A5568;
    font-weight: 600;
}

.mockup-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.ms-box {
    padding: 8px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.ms-box.blue { background: rgba(0, 74, 173, 0.05); color: var(--primary); }
.ms-box.green { background: rgba(16, 185, 129, 0.05); color: var(--success); }
.ms-box.light-green { background: rgba(16, 185, 129, 0.05); color: var(--success); }
.ms-box.yellow { background: rgba(245, 158, 11, 0.05); color: var(--warning); }
.ms-box.red { background: rgba(239, 68, 68, 0.05); color: var(--danger); }

.ms-box span {
    font-size: 8px;
    color: #64748B;
    margin-bottom: 2px;
}

.ms-box strong {
    font-size: 12px;
}

.mockup-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.mockup-chart-col, .mockup-pie-col, .mockup-list-col {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.chart-lbl {
    font-size: 9px;
    font-weight: 700;
    color: #64748B;
    margin-bottom: 8px;
    display: block;
}

.bar-chart-preview {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 50px;
    padding: 0 5px;
}

.bar-pre {
    width: 6px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.bar-pre:nth-child(even) {
    background: var(--secondary);
}

.donut-visual {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 5px solid var(--primary);
    border-top-color: var(--secondary);
    margin: 0 auto 5px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.donut-visual-center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 8px;
}

.donut-visual-center small {
    font-size: 4px;
    color: #64748B;
}

.pie-labels {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.p-lbl {
    font-size: 6px;
    color: #4A5568;
}

.mockup-list-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 7px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 2px;
}

/* Stats Banner Row Styling */
.stats-banner {
    background: #070B19;
    padding: 40px 8%;
    color: white;
}

.stats-banner-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-stat-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.bs-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.bs-text h3 {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Outfit';
}

.bs-text p {
    font-size: 11px;
    color: #94A3B8;
}

/* Bottom CTA Banner */
.bottom-cta-section {
    padding: 80px 8%;
    background: linear-gradient(135deg, #070B19 0%, #0B1E43 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.bottom-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 74, 173, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.bottom-cta-container {
    max-width: 800px;
    margin: 0 auto;
    color: white;
    position: relative;
    z-index: 10;
}

.bottom-cta-container h2 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

.bottom-cta-container p {
    font-size: 15px;
    color: #94A3B8;
    margin-bottom: 30px;
}

.bottom-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.bottom-cta-orange {
    background: var(--secondary) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3) !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    font-size: 14px;
}

.bottom-cta-orange:hover {
    background: #E05E00 !important;
    transform: translateY(-2px);
}

.bottom-cta-outline {
    background: transparent !important;
    border-color: rgba(255,255,255,0.3) !important;
    color: white !important;
}

.bottom-cta-outline:hover {
    background: rgba(255,255,255,0.05) !important;
}

/* Minimalist Footer */
.landing-footer-new {
    background: #040710;
    padding: 25px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-new {
    text-align: center;
    color: #64748B;
    font-size: 12px;
}
/* --- LOGIN SCREEN --- */
#login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #101730 0%, #070B19 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

#login-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 74, 173, 0.15) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    z-index: 1;
}

#login-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    z-index: 1;
}

.login-card {
    background: rgba(16, 22, 47, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 480px;
    padding: 45px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
    transition: var(--transition);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    height: 95px;
    object-fit: contain;
    margin-bottom: 20px;
}

.login-header h2 {
    font-size: 26px;
    color: white;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted-dark);
}

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted-dark);
}

.login-input {
    width: 100%;
    padding: 13px 15px 13px 45px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.login-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 74, 173, 0.3);
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary) 0%, #003680 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
    transition: var(--transition);
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.4);
}

.demo-accounts-box {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--radius-sm);
}

.demo-accounts-box h4 {
    font-size: 12px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-align: center;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.demo-btn {
    padding: 6px;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted-dark);
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.demo-btn:hover {
    background: rgba(0, 74, 173, 0.15);
    color: white;
    border-color: var(--primary);
}

/* --- ENTERPRISE PORTAL LAYOUT --- */
#portal-section {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

/* Quick Role Switcher Bar */
.role-switcher-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 40px;
    background: linear-gradient(90deg, #10162F 0%, #070B19 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 0 15px;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
}

.role-switcher-label {
    color: var(--text-muted-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-switcher-label i {
    color: var(--secondary);
}

.role-switcher-label span {
    white-space: nowrap;
}

.role-switcher-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

.role-switch-btn {
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted-dark);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.role-switch-btn:hover, .role-switch-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 74, 173, 0.3);
}

.role-switch-btn.active-role-manager {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.3) !important;
}

/* Sidebar Navigation */
.portal-sidebar {
    width: 260px;
    background: #0A0F21;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: fixed;
    top: 40px;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 25px 15px;
    transition: var(--transition);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 10px;
}

.sidebar-logo {
    height: auto;
    width: 150px;
    max-width: 100%;
}

.user-profile-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.user-details h5 {
    font-size: 13px;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.user-details span.role-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
    display: block;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: var(--text-muted-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.menu-item.active a, .menu-item a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.menu-item.active a {
    background: rgba(0, 74, 173, 0.15);
    border-left: 3px solid var(--primary);
    color: white;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
}

/* Main Content Area */
.portal-main {
    margin-left: 260px;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
    padding: 70px 30px 30px 30px;
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.portal-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.portal-title p {
    font-size: 13px;
    color: var(--text-muted-dark);
    margin-top: 3px;
}

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

.btn-action {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

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

.btn-action.primary:hover {
    background: #003F93;
}

/* --- DASHBOARD COMPONENTS --- */

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

.stat-card {
    background: var(--card-dark);
    border: 1px solid var(--card-border-dark);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-card-details p {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-details h3 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-top: 5px;
    font-family: 'Outfit', sans-serif;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 74, 173, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card:nth-child(2) .stat-card-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-card:nth-child(3) .stat-card-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-card:nth-child(4) .stat-card-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

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

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

.chart-card {
    background: var(--card-dark);
    border: 1px solid var(--card-border-dark);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-card-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

/* Data Table Card */
.table-card {
    background: var(--card-dark);
    border: 1px solid var(--card-border-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 0;
    margin-bottom: 30px;
}

.table-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.table-card-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.table-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-filter-select {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 12px;
    outline: none;
}

.table-filter-select option {
    background: #0A0F21;
    color: white;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

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

.custom-table th {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted-dark);
}

.custom-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: var(--text-dark);
    vertical-align: middle;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-draft { background: rgba(148, 163, 184, 0.15); color: #94A3B8; }
.badge-waiting { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.badge-process-nidi { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.badge-nidi-finished { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.badge-waiting-slo { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }
.badge-process-slo { background: rgba(236, 72, 153, 0.15); color: #EC4899; }
.badge-slo-finished { background: rgba(20, 184, 166, 0.15); color: #20B8A6; }
.badge-shared { background: rgba(6, 182, 212, 0.15); color: #06B6D4; }
.badge-completed { background: rgba(16, 185, 129, 0.25); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.3); }

.badge-unpaid { background: rgba(239, 68, 68, 0.15); color: #EF4444; }
.badge-paid { background: rgba(16, 185, 129, 0.15); color: #10B981; }

/* TT Dashboard Accordion Kecamatan */
.kecamatan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.kecamatan-card {
    background: var(--card-dark);
    border: 1px solid var(--card-border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.kecamatan-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.kecamatan-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.kecamatan-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.kecamatan-title i {
    color: var(--secondary);
}

.kecamatan-badge {
    padding: 3px 8px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.kecamatan-body {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: none;
}

.kecamatan-body.open {
    display: block;
}

/* --- MODAL DIALOGS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 16, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #0E1326;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 650px;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h4 i {
    color: var(--secondary);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted-dark);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-modal:hover {
    color: white;
}

.modal-body {
    padding: 25px;
    max-height: 75vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, 0.01);
}

/* Custom Modal Form Fields */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 576px) {
    .form-group-full {
        grid-column: span 1;
    }
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted-dark);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13.5px;
    outline: none;
    transition: var(--transition);
}

.form-input option {
    background: #0E1326;
    color: white;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.form-textarea {
    width: 100%;
    height: 80px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13.5px;
    outline: none;
    resize: none;
    transition: var(--transition);
}

.form-textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

/* Modal Details Display */
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

.detail-row span.label {
    color: var(--text-muted-dark);
    font-weight: 500;
}

.detail-row span.value {
    color: white;
    font-weight: 600;
}

.detail-section-title {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 600;
    margin: 15px 0 10px 0;
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
    padding-bottom: 4px;
}

/* --- WHATSAPP SIMULATOR POPUP --- */
.wa-simulator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: #075E54;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 3000;
    overflow: hidden;
    color: white;
    display: none;
    animation: waSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes waSlideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.wa-header {
    background: #075E54;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wa-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.wa-header-info h5 {
    font-size: 12.5px;
    font-weight: 600;
}

.wa-header-info p {
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.7);
}

.wa-body {
    background: #E5DDD5;
    padding: 15px;
    height: 180px;
    overflow-y: auto;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: cover;
    display: flex;
    flex-direction: column;
}

.wa-bubble {
    background: #DCF8C6;
    color: #303030;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 11px;
    align-self: flex-start;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.wa-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent #DCF8C6 transparent transparent;
}

.wa-bubble span.time {
    font-size: 8px;
    color: #707070;
    float: right;
    margin-top: 5px;
    margin-left: 10px;
}

.wa-footer {
    background: #F4F4F4;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-input-box {
    flex-grow: 1;
    background: white;
    padding: 6px 12px;
    border-radius: 15px;
    color: #888;
    font-size: 11px;
}

.wa-footer i.send-icon {
    color: #075E54;
    font-size: 16px;
}

/* --- AUDIT TRAIL LOG VIEWER --- */
.audit-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.audit-item {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.audit-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.audit-user {
    font-weight: 600;
    color: var(--secondary);
}

.audit-action {
    color: white;
}

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

/* --- TAB MANAGEMENT SYSTEM --- */
.tab-section {
    display: none;
}

.tab-section.active {
    display: block;
}

/* Upload Simulator Layout */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(0, 74, 173, 0.04);
}

.upload-zone i {
    font-size: 36px;
    color: var(--text-muted-dark);
    margin-bottom: 12px;
}

.upload-zone h5 {
    color: white;
    font-size: 14px;
    margin-bottom: 5px;
}

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

.uploaded-files-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uploaded-file-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.uploaded-file-item i.file-icon {
    color: var(--primary);
    margin-right: 8px;
}

.uploaded-file-item i.delete-icon {
    color: var(--danger);
    cursor: pointer;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 120px;
        gap: 40px;
        text-align: center;
    }
    .hero-cta {
        justify-content: center;
    }
    .floating-stat-card {
        display: none;
    }
    .calc-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .portal-sidebar {
        width: 70px;
        padding: 20px 5px;
    }
    .portal-sidebar .sidebar-title,
    .portal-sidebar .brand-subtitle,
    .portal-sidebar .user-profile-widget,
    .portal-sidebar .menu-item span,
    .portal-sidebar .btn-logout span {
        display: none;
    }
    .portal-sidebar .sidebar-brand {
        justify-content: center;
        padding: 0;
        margin-bottom: 25px;
    }
    .portal-sidebar .menu-item a {
        justify-content: center;
        padding: 12px;
    }
    .portal-main {
        margin-left: 70px;
        width: calc(100% - 70px);
        max-width: calc(100% - 70px);
    }
    .nav-links {
        display: none;
    }
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 5% 50px 5%;
    }
    .hero-text h1 {
        font-size: 34px;
    }
    .hero-text p {
        font-size: 15px;
    }
    .services-grid-new, .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calc-container-new {
        padding: 20px;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .chart-card {
        grid-column: span 1 !important;
    }
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Mobile Phone Responsive */
@media (max-width: 576px) {
    .services-grid-new, .advantages-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 28px;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .hero-badges {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .primary-hero-btn, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .calc-group-new {
        width: 100%;
        flex: 1 1 100%;
    }
    .calc-group-new select {
        width: 100%;
    }
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    .table-responsive {
        overflow-x: auto;
    }
    .custom-table {
        min-width: 700px;
    }
    /* Mobile Sidebar Handling */
    .portal-sidebar {
        transform: translateX(-100%);
        width: 260px;
        z-index: 2000;
        transition: transform 0.3s ease;
    }
    .portal-sidebar.mobile-open {
        transform: translateX(0);
    }
    .portal-sidebar .sidebar-title,
    .portal-sidebar .brand-subtitle,
    .portal-sidebar .user-profile-widget,
    .portal-sidebar .menu-item span,
    .portal-sidebar .btn-logout span {
        display: block; /* Restore for mobile drawer */
    }
    .bottom-cta-buttons {
        flex-direction: column;
    }
    .bottom-cta-buttons button {
        width: 100%;
    }
    
    .portal-main {
        margin-left: 0;
        padding: 60px 15px 15px 15px; /* Kembalikan padding karena role switcher dikembalikan */
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .table-responsive::-webkit-scrollbar {
        height: 6px;
    }
    .table-responsive::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }
    .table-responsive::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    .role-switcher-bar::-webkit-scrollbar {
        height: 4px;
    }
    .role-switcher-bar::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
    }
    .role-switcher-bar::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .landing-nav.mobile-active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
}

/* Dashboard Grid Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.chart-container, .recent-activity-container {
    background: var(--card-dark);
    border: 1px solid var(--card-border-dark);
    border-radius: var(--radius-md);
    padding: 20px;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.timeline-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary);
    margin-top: 5px;
    flex-shrink: 0;
}

.timeline-content {
    flex-grow: 1;
}

.timeline-text {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 12px;
    color: var(--text-muted-dark);
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
