/* ==================================================
   WalletX — PREMIUM LUXURY STYLESHEET (2025 Edition)
   Fully compatible with your existing HTML + app.py
   ================================================== */

@import url('https://rsms.me/inter/inter.css');
html { font-family: 'Inter', system-ui, sans-serif; }

body {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    color: #0f172a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Primary Brand Colors */
:root {
    --primary: #00A76F;
    --primary-dark: #08986a;
    --primary-light: #ccfbf1;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
}

/* Glassmorphism Cards */
.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 167, 111, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,167,111,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 167, 111, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Balance Hero Card — Pure Luxury */
.balance-card {
    background: linear-gradient(135deg, #00A76F 0%, #08986a 100%);
    color: white;
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 167, 111, 0.3);
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: shine 8s infinite linear;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    100% { transform: translateX(50%) translateY(50%) rotate(360deg); }
}

/* Buttons — Elevated */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-green {
    background: linear-gradient(135deg, #00A76F, #08986a);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 167, 111, 0.3);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 167, 111, 0.4);
}

.btn-green:active {
    transform: translateY(0);
}

/* Navigation & Icons */
.nav-link {
    transition: all 0.3s ease;
    border-radius: 16px;
    padding: 0.75rem;
}

.nav-link:hover {
    background: rgba(0, 167, 111, 0.1);
    transform: translateY(-2px);
}

.nav-active {
    color: var(--primary);
    font-weight: 700;
    background: rgba(0, 167, 111, 0.1);
    border-radius: 16px;
}

/* Pills — Refined */
.pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill.success { background: #dcfce7; color: #16a34a; }
.pill.danger  { background: #fee2e2; color: #dc2626; }
.pill.warn    { background: #fffbeb; color: #f59e0b; }
.pill.pending { background: #fef3c7; color: #d97706; }

/* Toast — Even More Premium */
.toast {
    padding: 1rem 2rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1), glow 2s infinite;
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive Perfection */
@media (min-width: 768px) {
    .container { max-width: 1400px; }
    .balance-card { padding: 3rem; }
    .card { border-radius: 24px; }
}

/* Subtle Animations */
.fade-in { animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar (Webkit) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(0, 167, 111, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 167, 111, 0.5); }
