/* 
 * Customer App UI - Material Design 3 & Glassmorphism Style
 * Premium, stylish, and highly interactive.
 */

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

:root {
    --app-primary: #4f46e5;      /* Indigo-600 */
    --app-primary-light: #818cf8;
    --app-primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --app-success: #10b981;      /* Emerald */
    --app-danger: #ef4444;       /* Rose */
    --app-warning: #f59e0b;      /* Amber */
    --app-info: #0ea5e9;         /* Sky Blue */
    
    --app-bg: #f8fafc;           /* Slate-50 */
    --app-surface: rgba(255, 255, 255, 0.85);
    --app-surface-solid: #ffffff;
    --app-text-main: #0f172a;
    --app-text-muted: #64748b;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Manrope', sans-serif;
    
    /* Elevations */
    --elevation-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --elevation-2: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
    --elevation-3: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
    
    /* Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(20px);
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body {
    background: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--app-text-main);
    font-family: var(--font-main);
    min-height: 100vh;
}

/* Berikan padding bawah hanya jika ada navigasi bawah (Floating Dock) */
body:has(.app-bottom-nav), 
body:has(.bottom-nav), 
body:has(.mobile-bottom-nav),
body.has-bottom-nav {
    padding-bottom: 120px;
}

h1, h2, h3, h4, h5, h6, .fw-900, .fw-800 {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.animate-fade { animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-scale { animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.animate-slide { animation: slideInRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* App Top Bar - Sleek & Minimal */
.app-topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-topbar-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--app-text-main);
    margin: 0;
    letter-spacing: -0.5px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--app-primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.user-avatar:active { transform: scale(0.9); }

/* Containers */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Cards & Glass Effects - Premium Depth */
.app-card {
    background: var(--app-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--elevation-2);
    padding: 18px;
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.app-card:active { transform: scale(0.99); box-shadow: var(--elevation-1); }

/* Status Banner - Modern Gradient */
.status-banner {
    background: var(--app-primary-gradient);
    color: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px -10px rgba(79, 70, 229, 0.35);
}

.status-banner h5 { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.3px; }

.status-banner::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    border-radius: 35px;
    transform: rotate(25deg);
}

/* Quick Actions Grid - iOS Style */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.quick-action-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 6px 12px -4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--app-primary);
    margin-bottom: 6px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.015);
}

.quick-action-item:active .quick-action-icon {
    transform: scale(0.88) translateY(2px);
    box-shadow: 0 4px 8px -2px rgba(0,0,0,0.04);
}

.quick-action-label {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--app-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1px;
}

/* Setting List Items - Refined */
.setting-list-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.setting-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--app-primary);
    margin-right: 14px;
    box-shadow: var(--elevation-1);
    transition: all 0.3s;
}

.setting-content { flex: 1; min-width: 0; }
.setting-label { font-size: 0.7rem; color: var(--app-text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 1px; letter-spacing: 0.4px; }
.setting-value { font-weight: 800; font-size: 0.95rem; color: var(--app-text-main); }

/* Utility Classes */
.fw-900 { font-weight: 900; }
.fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.extra-small { font-size: 0.6rem; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Sub-brand colors */
.bg-indigo-subtle { background-color: #e0e7ff; }
.text-indigo { color: #4f46e5; }
.bg-rose-subtle { background-color: #ffe4e6; }
.text-rose { color: #e11d48; }
.bg-primary-subtle { background-color: rgba(79, 70, 229, 0.08); }

/* Buttons Refined */
.btn { 
    border-radius: var(--radius-md); 
    font-weight: 700; 
    padding: 10px 20px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}
.btn-primary { background: var(--app-primary-gradient); border: none; box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3); }
.btn-primary:active { transform: scale(0.96); box-shadow: 0 5px 10px -5px rgba(79, 70, 229, 0.3); }

.btn-danger-soft {
    background: rgba(239, 68, 68, 0.08);
    color: var(--app-danger);
    border: 1.5px solid rgba(239, 68, 68, 0.1);
    transition: all 0.3s;
}

.btn-danger-soft:hover {
    background: var(--app-danger);
    color: white;
    border-color: var(--app-danger);
    box-shadow: 0 10px 20px -5px rgba(239, 68, 68, 0.4);
}
.btn-danger-soft:active { transform: scale(0.96); }

/* Profile Specific */
.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--app-primary);
    position: relative;
    z-index: 2;
}

/* Bottom Navigation - Final Robust Fix */
.app-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0 5px;
}

.app-bottom-item {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: var(--app-text-muted);
    height: 100%;
    transition: all 0.3s ease;
    position: relative !important;
    border-radius: 20px;
}

.app-bottom-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
    display: block;
}

.app-bottom-label {
    font-size: 0.65rem;
    font-weight: 700;
    display: block;
}

.app-bottom-item.active {
    color: var(--app-primary);
}

.app-bottom-item.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 4px;
    height: 4px;
    background: var(--app-primary);
    border-radius: 50%;
}

/* Login Page Styles */
.login-page-wrapper {
    display: flex;
    min-height: 100vh;
    background: #fdfdfd;
}

.illustration-side {
    flex: 1.2;
    background: var(--app-primary-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.illustration-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 30px 30px;
    opacity: 0.5;
}

.illustration-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 450px;
    color: white;
}

.illustration-svg {
    width: 100%;
    height: auto;
    max-width: 380px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    box-shadow: -20px 0 60px rgba(0,0,0,0.03);
    position: relative;
    z-index: 10;
}

.form-wrapper { width: 100%; max-width: 380px; }

.login-heading { 
    font-weight: 800; 
    font-size: 2.25rem; 
    color: var(--app-text-main); 
    margin-bottom: 12px;
    letter-spacing: -1.5px;
}
.login-subheading { 
    color: var(--app-text-muted); 
    margin-bottom: 40px; 
    font-weight: 500; 
    font-size: 0.95rem;
}

.custom-input-group {
    position: relative;
    margin-bottom: 24px;
    width: 100%;
    height: 58px; /* Fixed height to ensure centering */
}

.custom-input-group .form-control {
    height: 58px !important;
    padding: 0 60px 0 56px !important;
    border-radius: 18px;
    border: 1.5px solid #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.3s;
    width: 100%;
    margin: 0 !important;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 20px;
    color: #94a3b8;
    font-size: 1.25rem;
    z-index: 5;
    pointer-events: none;
}

.input-action-btn {
    position: absolute;
    right: 7px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    border: none;
    background: var(--app-primary-gradient);
    color: white;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
}

.input-action-btn:active { transform: scale(0.92); }

.input-action-btn i { font-size: 1.25rem; margin-right: 0 !important; }

.btn-login {
    background: var(--app-primary-gradient);
    color: white;
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 20px;
}

.btn-login:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px -6px rgba(79, 70, 229, 0.5); 
    color: white; 
}

.btn-login:active { transform: scale(0.97); }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-google:hover { 
    background: #f8fafc; 
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.google-icon { width: 22px; height: 22px; }

/* Text Logo Styles */
.text-logo-wrapper { margin-bottom: 48px; }
.text-logo-main { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.75rem; color: var(--app-text-main); }
.logo-icon-pill { width: 44px; height: 44px; background: var(--app-primary-gradient); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2); }
.text-logo-sub { font-size: 0.85rem; font-weight: 800; color: var(--app-primary); margin-left: 56px; text-transform: uppercase; letter-spacing: 4px; margin-top: -6px; }

.links-container { text-align: center; margin: 24px 0; }
.link-item { 
    color: var(--app-primary); 
    font-weight: 700; 
    text-decoration: none; 
    font-size: 0.95rem;
    transition: all 0.3s;
}
.link-item:hover { color: #3730a3; text-decoration: underline; }

.divider { 
    height: 1px; 
    background: #e2e8f0; 
    margin: 32px 0; 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.divider::after {
    content: 'Atau';
    position: absolute;
    background: white;
    padding: 0 12px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-small {
    margin-top: 48px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--app-text-muted);
    line-height: 1.6;
}

/* Sidebar / Offcanvas Modern */
.offcanvas {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.5) !important;
    width: 290px !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
    box-shadow: 20px 0 50px rgba(0,0,0,0.05) !important;
}

.offcanvas-header {
    padding: 30px 24px 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
}

.offcanvas-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--app-text-main);
    letter-spacing: -0.5px;
}

.offcanvas-body {
    padding: 20px 16px !important;
}

.list-group-item {
    background: transparent !important;
    border: none !important;
    border-radius: 20px !important;
    margin-bottom: 8px !important;
    padding: 16px 20px !important;
    color: var(--app-text-muted) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent !important;
}

.list-group-item i {
    font-size: 1.4rem;
    margin-right: 18px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.list-group-item:hover {
    background: rgba(79, 70, 229, 0.08) !important;
    color: var(--app-primary) !important;
    transform: translateX(6px);
    border-color: rgba(79, 70, 229, 0.1) !important;
}

.list-group-item.active {
    background: var(--app-primary-gradient) !important;
    color: white !important;
    box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.5);
    border-color: transparent !important;
}

.list-group-item.active i {
    transform: scale(1.15);
    opacity: 1;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(0,0,0,0.04);
    margin-top: auto;
    background: rgba(255,255,255,0.2);
}

.btn-sidebar-logout {
    width: 100%;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.1);
    color: var(--app-danger);
    border-radius: 18px;
    padding: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
}

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

.btn-sidebar-logout:active {
    transform: scale(0.96);
}

/* Landscape View Adjustments */
@media (max-height: 500px) {
    .offcanvas-body { overflow-y: auto; }
}

/* Payment Method Buttons - Modern & Clean */
.payment-method-btn {
    width: 100%;
    background: white;
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.payment-method-btn:hover:not(:disabled) {
    border-color: var(--app-primary-light);
    background: rgba(79, 70, 229, 0.02);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.2);
}

.payment-method-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.payment-method-btn i {
    font-size: 1.5rem;
    color: var(--app-primary);
    background: rgba(79, 70, 229, 0.08);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.payment-method-btn:hover i {
    background: var(--app-primary);
    color: white;
}

.payment-method-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f5f9;
}

.payment-method-btn .method-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--app-text-main);
    line-height: 1.2;
}

.payment-method-btn .method-fee {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--app-text-muted);
}

/* Confirm Payment Page Styles */
.summary-card {
    background: var(--app-primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px -10px rgba(79, 70, 229, 0.4);
    margin-bottom: 24px;
}

.summary-card .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-weight: 700;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.method-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.method-option {
    cursor: pointer;
    position: relative;
}

.method-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.method-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.method-card i {
    font-size: 1.5rem;
    color: var(--app-text-muted);
    transition: all 0.3s;
}

.method-card span {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--app-text-muted);
}

.method-option input:checked + .method-card {
    border-color: var(--app-primary);
    background: rgba(79, 70, 229, 0.05);
}

.method-option input:checked + .method-card i {
    color: var(--app-primary);
    transform: scale(1.1);
}

.method-option input:checked + .method-card span {
    color: var(--app-primary);
}

.proof-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.proof-upload:hover {
    border-color: var(--app-primary-light);
    background: rgba(79, 70, 229, 0.02);
}

.proof-upload input {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.proof-preview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 16px;
    display: none;
    margin-top: 10px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-submit {
    background: var(--app-primary-gradient);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 20px;
    width: 100%;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5);
    color: white;
}

.btn-submit:active {
    transform: scale(0.97);
}


