:root {
    --bg-color: #0c111d;
    --card-bg: #1a212e;
    --primary-color: #10b981;
    --accent-color: #34d399;
    --text-color: #f9fafb;
    --text-muted: #94a3b8;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}

body.theme-light {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --primary-color: #059669;
    --accent-color: #10b981;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --surface: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-color);
    box-shadow: 0 0 100px rgba(16, 185, 129, 0.05);
    transition: max-width 0.3s ease;
}

.app-container.full-width {
    max-width: 100%;
}

.app-container.full-width main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Premium Header */
header {
    background: rgba(12, 17, 29, 0.8);
    backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

main {
    padding: 1rem;
    padding-bottom: 100px;
}

/* Exclusive Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Service Grid (Gojek Style) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.service-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.service-item:active .service-icon {
    transform: scale(0.9);
    background: rgba(16, 185, 129, 0.1);
}

/* Forms & Inputs */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-base);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.05);
    background: var(--card-bg);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-base);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    gap: 0.6rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Bottom Navigation */
.nav-bottom {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 440px;
    background: rgba(26, 33, 46, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.3s;
    flex: 1;
}

.nav-item i {
    font-size: 1.35rem;
    margin-bottom: 0.15rem;
    transition: transform 0.3s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: translateY(-4px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulsate-red {
    0% {
        filter: drop-shadow(0 0 0px rgba(239, 68, 68, 0.7));
    }

    70% {
        filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
    }

    100% {
        filter: drop-shadow(0 0 0px rgba(239, 68, 68, 0));
    }
}

@keyframes pulsate-yellow {
    0% {
        filter: drop-shadow(0 0 0px rgba(245, 158, 11, 0.7));
    }

    70% {
        filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
    }

    100% {
        filter: drop-shadow(0 0 0px rgba(245, 158, 11, 0));
    }
}

.pulsate-red {
    animation: pulsate-red 1.5s infinite;
}

.pulsate-yellow {
    animation: pulsate-yellow 1.5s infinite;
}

.theme-ocean {
    --bg-color: #0c1421;
    --card-bg: #141e2f;
    --primary-color: #0ea5e9;
    --accent-color: #38bdf8;
    --border: rgba(56, 189, 248, 0.1);
}

.theme-earth {
    --bg-color: #1a1c18;
    --card-bg: #21251e;
    --primary-color: #84cc16;
    --accent-color: #bef264;
    --border: rgba(132, 204, 22, 0.1);
}

.theme-sunset {
    --bg-color: #1c1917;
    --card-bg: #292524;
    --primary-color: #f97316;
    --accent-color: #fb923c;
    --border: rgba(249, 115, 22, 0.1);
}

.theme-lavender {
    --bg-color: #171520;
    --card-bg: #211d2e;
    --primary-color: #a855f7;
    --accent-color: #c084fc;
    --border: rgba(168, 85, 247, 0.1);
}

/* Animated Gov Banner */
.gov-banner-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
}

.gov-banner-card::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 60%);
    opacity: 0.1;
    filter: blur(40px);
    animation: moveGlow 10s infinite alternate linear;
}

@keyframes moveGlow {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-30px, 20px);
    }
}

.theme-ocean .gov-banner-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 200%;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230ea5e9" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: 50% 100%;
    animation: waves 8s infinite linear;
    opacity: 0.5;
}

@keyframes waves {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.theme-earth .gov-banner-card::after {
    content: '🍃';
    position: absolute;
    font-size: 2rem;
    opacity: 0.05;
    right: 10%;
    top: 20%;
    animation: drift 15s infinite linear;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.1;
    }

    80% {
        opacity: 0.1;
    }

    100% {
        transform: translate(-100px, 40px) rotate(360deg);
        opacity: 0;
    }
}

.theme-sunset .gov-banner-card::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(249, 115, 22, 0.05) 0%, transparent 100%);
    animation: flicker 4s infinite alternate;
}

@keyframes flicker {
    from {
        opacity: 0.3;
    }

}

.banner-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.banner-slide {
    flex: 0 0 100%;
    width: 100%;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--primary-color);
    width: 15px;
    border-radius: 4px;
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Management Layout (Sidebar) */
.mgmt-layout {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 850;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sidebar-nav {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.sidebar-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.sidebar-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.sidebar-link.active {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.mgmt-content {
    flex: 1;
    padding: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}