/* style.css - UPDATE (NO SPINNER & FULL STYLE) */

:root {
    --primary: #0072ff; 
    --primary-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --secondary: #00c6ff;
    --success: #00b09b; 
    --danger: #ff5f6d;
    --dark: #2d3436;
    --light: #fdfbfb;
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }

body {
    background: #eef2f3; color: var(--dark);
    display: flex; justify-content: center; min-height: 100vh;
    font-size: 14px;
}

.container {
    width: 100%; max-width: 480px;
    background: var(--light); min-height: 100vh;
    padding: 20px; box-shadow: var(--shadow);
    position: relative; display: flex; flex-direction: column;
}

/* BRANDING */
.brand-header { text-align: center; padding: 30px 0 20px; }
.brand-logo {
    font-size: 2.5rem; font-weight: 800;
    background: var(--primary-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; letter-spacing: -1px;
}

/* CARD & INPUTS */
.card {
    background: white; border-radius: 16px; padding: 20px;
    margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
}

input, select, button {
    width: 100%; padding: 15px; border-radius: 12px;
    border: 1px solid #dfe6e9; margin-bottom: 10px; font-size: 1rem;
    background: white; outline: none; transition: 0.3s;
}
input:focus, select:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0,198,255,0.1); }
input[readonly] { background: #f1f2f6; color: #636e72; cursor: not-allowed; border-color: #ddd; }

/* --- FITUR BARU: HILANGKAN PANAH NAIK TURUN DI INPUT ANGKA --- */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

button {
    background: var(--primary-gradient); color: white;
    font-weight: 600; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,114,255,0.3);
}
button:active { transform: scale(0.98); }
button:disabled { background: #b2bec3; cursor: not-allowed; box-shadow: none; }
.btn-danger { background: var(--danger); box-shadow: none; }

/* UTILS */
.hidden { display: none !important; }
.badge { padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; }
.badge.active { background: #d4edda; color: #155724; }
.badge.pending { background: #fff3cd; color: #856404; }

/* LOADING SCREEN */
#loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: white; z-index: 9999;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}
.wave-spinner {
    width: 50px; height: 50px;
    background: var(--primary-gradient); border-radius: 50%;
    animation: pulse 1s infinite ease-in-out;
}
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 0; } }

/* TOAST */
#toast-container {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 10000; width: 90%; max-width: 400px;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 15px;
    border-left: 6px solid #ccc; backdrop-filter: blur(10px);
    animation: slideInTop 0.4s ease;
}
.toast.success { border-left-color: #00b09b; }
.toast.error { border-left-color: #ff5f6d; }
.toast.info { border-left-color: #0072ff; }
.toast-icon { font-size: 1.5rem; }
@keyframes slideInTop { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* KARTU KAWAN */
.kawan-card {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 15px;
    border: 1px solid #edf2f7; transition: transform 0.2s;
}
.kawan-card:active { transform: scale(0.98); }
.kawan-header { padding: 15px; color: white; font-weight: 600; display: flex; justify-content: space-between; }
.kawan-body { padding: 20px; text-align: center; }

.bg-pos-1 { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }
.bg-pos-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg-pos-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-pos-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.bank-badge { background: rgba(255,255,255,0.25); padding: 5px 10px; border-radius: 15px; font-size: 0.8em; backdrop-filter: blur(5px); }
.rekening-box {
    background: #f8f9fa; border: 2px dashed #ccc; padding: 10px; margin: 15px 0;
    border-radius: 8px; font-weight: bold; font-family: monospace; font-size: 1.1rem; color: #2d3436;
}
.btn-wa { background: #25D366; color: white; padding: 12px; border-radius: 50px; text-decoration: none; display: block; width: 100%; border: none; font-weight: bold; }