:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: rgba(16, 185, 129, 0.15);
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --danger: #ef4444;
    --bg-main: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 20px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --glass: backdrop-filter: blur(12px) saturate(180%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.125);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.btn-primary:active { transform: scale(0.97); box-shadow: 0 5px 10px -5px rgba(16, 185, 129, 0.4); }

.form-group { margin-bottom: 20px; }
.form-label { 
    display: block; 
    margin-bottom: 10px; 
    font-weight: 800; 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
}
.form-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
    background: #f8fafc;
    transition: all 0.2s;
}

/* Dark selects (inline styled) need readable dropdown options */
select.form-input option {
    background: #0f172a;
    color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 28px 0; /* Padding bawah ekstra untuk gesture bar Android */
    border-radius: 32px 32px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    z-index: 2000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    position: relative;
}

/* Material 3 Active Pill Effect */
.nav-item .nav-icon {
    font-size: 1.25rem;
    width: 64px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active {
    color: white;
}

.nav-item.active .nav-icon {
    background: var(--primary);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-item.active span {
    color: var(--primary);
    font-weight: 800;
}

.badge {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

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

.fade-in { animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.hidden-scroll::-webkit-scrollbar { display: none; }
.hidden-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* Data Protection - Proteksi Screenshot */
.sensitive-blur {
    transition: filter 0.3s ease;
}

@media print {
    .sensitive-blur {
        filter: blur(8px) !important;
    }
}

/* User interaction for sensitive data */
.sensitive-data-container:active .sensitive-blur {
    filter: none !important;
}

.sensitive-blur {
    filter: blur(6px);
}

.sensitive-blur:hover {
    filter: none;
}

/* Modal and Utility */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.modal-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 32px;
    width: 100%;
    max-width: 450px;
    padding: 10px 0 30px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Utility Class untuk menangani visibility di mobile dan desktop */
.show-mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    .show-mobile-only {
        display: inline !important;
    }
}

