/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #8A2BE2; /* Blue Violet */
    --secondary: #4169E1; /* Royal Blue */
    --accent: #FF007F; /* Neon Pink */
    --bg-dark: #0A0E17;
    --bg-card: rgba(20, 25, 40, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: #A0AEC0;
    --success: #00E676;
    --danger: #FF3D00;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, rgba(65, 105, 225, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 100% 100%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    padding-bottom: 80px; /* Space for bottom nav */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Gradients and Text */
.text-gradient {
    background: linear-gradient(90deg, #00C9FF 0%, #92FE9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-purple {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-gradient:hover, .btn-gradient:focus {
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.btn-outline-glow {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background: rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    color: white;
}

/* Top Navbar */
.top-navbar {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.wallet-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Bottom Mobile Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 20, 31, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-glass);
    z-index: 1030;
    display: flex;
    justify-content: space-around;
    padding: 12px 10px 18px 10px; /* Extra bottom padding for iOS home indicator */
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 4px;
    width: 25%;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    color: var(--secondary);
    filter: drop-shadow(0 0 8px rgba(65, 105, 225, 0.6));
    transform: translateY(-3px);
}

.nav-item:hover {
    color: white;
}

/* Forms & Inputs */
.form-control, .form-select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    color: white;
    border-radius: 12px;
    padding: 12px 15px;
}
.form-control:focus, .form-select:focus {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
}
.form-label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.input-group-text {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    border-right: none;
}
.form-control-with-icon {
    border-left: none;
}

/* SweetAlert Dark Theme Override */
.swal2-popup {
    background: #141928 !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 20px !important;
    color: white !important;
}
.swal2-title, .swal2-html-container {
    color: white !important;
}

/* Utilities */
.text-muted { color: var(--text-muted) !important; }
.b-radius-xl { border-radius: 24px; }
.b-radius-lg { border-radius: 16px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

/* Animation Classes */
.hover-lift {
    transition: transform 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
}
.glow-border {
    position: relative;
}
.glow-border::before {
    content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    z-index: -1;
    background-size: 400% 400%;
    animation: gradientBorder 5s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.glow-border:hover::before {
    opacity: 1;
}
@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Custom Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.1) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Modal */
.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}
.modal-header {
    border-bottom: 1px solid var(--border-glass);
}
.modal-footer {
    border-top: 1px solid var(--border-glass);
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
