/* ==========================================================
   FinTrack Pro - Modern Slate Obsidian Glassmorphism Theme
   100% Fluid Responsive for Mobile, Tablet, and Desktop
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-darkest: #070B14;
    --bg-primary: #0A0F1D;
    --bg-surface: #0F172A;
    --card-surface: rgba(15, 23, 42, 0.82);
    --card-surface-hover: rgba(30, 41, 59, 0.9);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(16, 185, 129, 0.35);
    --accent-emerald: #10B981;
    --accent-emerald-hover: #059669;
    --accent-cyan: #06B6D4;
    --accent-blue: #3B82F6;
    --accent-lime: #D4F82C;
    --accent-rose: #F43F5E;
    --accent-amber: #F59E0B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    overflow-x: hidden;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Fluid Viewport Container (Mobile, Tablet, Desktop) */
.app-viewport {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at 50% -10%, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.06) 35%, rgba(7, 11, 20, 0.98) 75%);
}

.app-container {
    width: 100%;
    max-width: 1024px;
    min-height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 70px rgba(0, 0, 0, 0.85);
}

@media (min-width: 768px) {
    .app-container {
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--card-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: var(--card-hover-border);
}

.glass-card-dark {
    background: rgba(10, 16, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
}

.glass-modal {
    background: rgba(11, 18, 34, 0.96);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.85);
}

/* Action Buttons */
.btn-emerald {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(16, 185, 129, 0.55);
}

.btn-lime {
    background: var(--accent-lime);
    color: #070B14;
    font-weight: 800;
    border-radius: 9999px;
    box-shadow: 0 8px 20px -4px rgba(212, 248, 44, 0.35);
    transition: all 0.2s ease;
}

.btn-lime:hover {
    background: #E2FF4A;
    transform: translateY(-2px);
}

.btn-dark {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.btn-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Bottom Navigation Bar (Fluid across screen sizes) */
.bottom-nav-wrapper {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1024px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 45;
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
}

.nav-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 11px;
    font-weight: 700;
    gap: 3px;
    padding: 6px 14px;
    border-radius: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-tab-btn i {
    font-size: 1.25rem;
}

.nav-tab-btn:hover {
    color: #F8FAFC;
}

.nav-tab-btn.active {
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Wallet Card Styles (Authentic Bangladeshi FinTech Gradients) */
.card-bkash {
    background: linear-gradient(135deg, #D12053 0%, #880B32 100%);
    box-shadow: 0 10px 25px -5px rgba(209, 32, 83, 0.35);
}

.card-nagad {
    background: linear-gradient(135deg, #F7941D 0%, #B83802 100%);
    box-shadow: 0 10px 25px -5px rgba(247, 148, 29, 0.35);
}

.card-rocket {
    background: linear-gradient(135deg, #8C3494 0%, #4D1654 100%);
    box-shadow: 0 10px 25px -5px rgba(140, 52, 148, 0.35);
}

.card-bank {
    background: linear-gradient(135deg, #1E3A8A 0%, #0B1931 100%);
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.35);
}

.card-cash {
    background: linear-gradient(135deg, #059669 0%, #033626 100%);
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.35);
}

.card-custom {
    background: linear-gradient(135deg, #0284C7 0%, #034A75 100%);
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.35);
}

/* PIN Lock Keypad */
.pin-key {
    height: 64px;
    width: 64px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F8FAFC;
    transition: all 0.15s ease;
    cursor: pointer;
}

.pin-key:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34D399;
}

.pin-key:active {
    transform: scale(0.92);
}

.pin-dot {
    width: 15px;
    height: 15px;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
}

.pin-dot.filled {
    background-color: #10B981;
    border-color: #10B981;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.85);
    transform: scale(1.2);
}

/* Badges */
.badge-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-rose {
    background: rgba(244, 63, 94, 0.15);
    color: #FB7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #22D3EE;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #FCD34D;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-lime {
    background: rgba(212, 248, 44, 0.15);
    color: var(--accent-lime);
    border: 1px solid rgba(212, 248, 44, 0.3);
}

/* Touch feedback */
.touch-press:active {
    transform: scale(0.97);
}

/* Tab Transitions */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(7, 11, 20, 0.7);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.4);
}

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

/* Animation Utilities */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.2s ease-out forwards;
}
