:root {
    --primary-dark: #0A1931;
    --primary-orange: #f48120;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
}

body {
    color: var(--primary-dark);
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

/* Utility Colors */
.text-primary-dark { color: var(--primary-dark); }
.text-muted-custom { color: var(--text-muted); }

/* Buttons */
.btn-primary-orange {
    background-color: var(--primary-orange);
    color: white;
    transition: 0.3s;
}
.btn-primary-orange:hover {
    background-color: #e0701b;
    color: white;
}

.btn-outline-dark {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    transition: 0.3s;
}
.btn-outline-dark:hover {
    color: white;
    background-color: var(--primary-dark);
}

.btn-dark-blue {
    background-color: var(--primary-dark);
    color: white;
    transition: 0.3s;
}
.btn-dark-blue:hover {
    background-color: #112a53;
    color: white;
}

/* Navbar */
.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.2s;
}
.nav-link:hover {
    color: var(--primary-dark);
}
.nav-link.active {
    color: var(--primary-dark) !important;
    border-bottom: 2px solid var(--primary-dark);
}

/* Step Section */
.step-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto;
    background-color: white;
    position: relative;
    z-index: 2;
}
.step-circle.active {
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
}
.step-circle.inactive {
    border: 1px solid #cbd5e1;
    color: var(--text-muted);
}
.step-line {
    position: absolute;
    top: 27px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 1px;
    background-color: #cbd5e1;
    z-index: 1;
}

/* Forms */
.form-control:focus {
    box-shadow: none;
    border-color: #cbd5e1;
}

/* Styles extracted from admin/cetak_laporan.php */
body.page-cetak {
            font-family: 'Inter', sans-serif;
            background-color: #fff;
            color: #000;
        }
        .header-laporan {
            border-bottom: 3px solid #000;
            padding-bottom: 20px;
            margin-bottom: 30px;
        }
        .table-print {
            width: 100%;
            border-collapse: collapse;
        }
        .table-print th, .table-print td {
            border: 1px solid #000 !important;
            padding: 8px 12px;
            font-size: 0.85rem;
        }
        .table-print th {
            background-color: #f3f4f6 !important;
            -webkit-print-color-adjust: exact; 
        }
        @media print {
            .btn-print {
                display: none !important;
            }
            body {
                padding: 0;
                margin: 0;
            }
        }

/* Styles extracted from admin/auth/login.php */
        .login-side-banner {
            background: linear-gradient(rgba(10, 25, 49, 0.7), rgba(10, 25, 49, 0.7)), url('../img/background-login.jpeg') center/cover no-repeat;
            position: relative;
            overflow: hidden;
        }
        .login-side-banner::before {
            content: '';
            position: absolute;
            top: -100px;
            right: -100px;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(244, 129, 32, 0.2) 0%, rgba(244, 129, 32, 0) 100%);
        }
        .login-side-banner::after {
            content: '';
            position: absolute;
            bottom: -50px;
            left: -50px;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
        }
        
        .form-control-custom {
            border: 1px solid #cbd5e1;
            padding: 0.8rem 1rem;
            border-radius: 0.5rem;
            background-color: #f1f5f9;
            transition: all 0.2s;
        }
        .form-control-custom:focus {
            background-color: #fff;
            border-color: var(--primary-orange);
            box-shadow: 0 0 0 4px rgba(244, 129, 32, 0.1);
        }
        .bg-primary-dark {
            background-color: var(--primary-dark);
        }

/* Styles extracted from admin/layouts/header.php */
        #wrapper {
            display: flex;
            width: 100%;
            align-items: stretch;
            min-height: 100vh;
        }
        #sidebar {
            min-width: 260px;
            max-width: 260px;
            background-color: var(--primary-dark);
            color: #fff;
            transition: all 0.3s;
            z-index: 1000;
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }
        #sidebar .sidebar-header {
            padding: 20px;
            background: rgba(0,0,0,0.15);
        }
        #sidebar ul.components {
            padding: 20px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        #sidebar ul li a {
            padding: 12px 25px;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: 0.2s;
        }
        #sidebar ul li a:hover, #sidebar ul li.active > a {
            color: #fff;
            background: rgba(255,255,255,0.1);
            border-left: 4px solid var(--primary-orange);
        }
        #sidebar ul li.active > a svg {
            color: var(--primary-orange);
        }
        
        #content {
            width: 100%;
            margin-left: 260px;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        .top-navbar {
            background: #fff;
            padding: 15px 25px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.02);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 999;
        }
        
        @media (max-width: 768px) {
            #sidebar {
                margin-left: -260px;
            }
            #sidebar.active {
                margin-left: 0;
            }
            #content {
                margin-left: 0;
            }
        }

/* Styles extracted from masyarakat/lacak.php */
        
        .tracking-timeline {
            position: relative;
            display: flex;
            justify-content: space-between;
            margin: 40px 0 20px 0;
            padding: 0 10px;
        }
        .tracking-timeline::before {
            content: '';
            position: absolute;
            top: 15px;
            left: 30px;
            right: 30px;
            height: 4px;
            background-color: #e2e8f0;
            z-index: 1;
        }
        .tracking-timeline .progress-bar-custom {
            position: absolute;
            top: 15px;
            left: 30px;
            width: var(--progress);
            max-width: calc(100% - 60px);
            height: 4px;
            background-color: var(--primary-orange);
            z-index: 2;
            transition: all 0.5s ease;
        }
        .timeline-step {
            position: relative;
            z-index: 3;
            text-align: center;
            width: 80px;
        }
        .timeline-icon {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background-color: white;
            border: 3px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px auto;
            color: #94a3b8;
        }

        @media (max-width: 767px) {
            .tracking-timeline {
                flex-direction: column;
                margin: 20px 0;
                padding: 0;
            }
            .tracking-timeline::before {
                top: 15px;
                bottom: 15px;
                left: 50%;
                transform: translateX(-50%);
                width: 4px;
                height: auto;
                right: auto;
            }
            .tracking-timeline .progress-bar-custom {
                top: 15px;
                left: 50%;
                transform: translateX(-50%);
                width: 4px;
                height: var(--progress);
                max-width: none;
                max-height: calc(100% - 30px);
            }
            .timeline-step {
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                width: 100%;
                margin-bottom: 40px;
                position: relative;
            }
            .timeline-step:last-child {
                margin-bottom: 0;
            }
            .timeline-icon {
                margin: 0;
                flex-shrink: 0;
                position: relative;
                z-index: 2;
            }
            .timeline-label {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                width: calc(50% - 25px);
                margin-bottom: 0;
            }
            .timeline-step:nth-child(even) .timeline-label { 
                left: 0;
                text-align: right;
                padding-right: 15px;
            }
            .timeline-step:nth-child(odd) .timeline-label { 
                right: 0;
                text-align: left;
                padding-left: 15px;
            }
        }
        
        .timeline-step.completed .timeline-icon {
            background-color: var(--primary-orange);
            border-color: var(--primary-orange);
            color: white;
        }
        .timeline-step.active .timeline-icon {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
            color: white;
        }
        
        .timeline-label {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: 2px;
            white-space: nowrap;
        }
        .timeline-date {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .timeline-step:not(.completed):not(.active) .timeline-label {
            color: #94a3b8;
        }

        .info-card {
            background-color: #f1f5f9;
            border-radius: 8px;
            padding: 10px 15px;
        }

/* Styles extracted from masyarakat/pengaduan.php */
.upload-box:hover {
            background-color: #f1f5f9 !important;
            border-color: var(--primary-dark) !important;
        }

/* Styles extracted from masyarakat/sukses.php */
body.page-sukses {
            background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
            min-height: 100vh;
        }
        .success-icon-wrapper {
            width: 90px;
            height: 90px;
            background-color: #ffe4d6; 
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
        }
        .success-icon-inner {
            width: 55px;
            height: 55px;
            background-color: var(--primary-orange);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .ticket-box {
            background-color: #e2e8f0;
            border-left: 6px solid var(--primary-orange);
            border-radius: 6px;
            padding: 20px;
            margin-bottom: 20px;
        }
        .btn-outline-custom {
            border: 2px solid var(--primary-dark);
            color: var(--primary-dark);
            background-color: white;
        }
        .btn-outline-custom:hover {
            background-color: var(--primary-dark);
            color: white;
        }
