/* global.css */
:root {
    --bg-dark: #0d1117;
    --bg-glass: rgba(22, 27, 34, 0.6);
    --border-color: rgba(48, 54, 61, 0.8);
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-blue: #0d6efd;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-yellow: #facc15;
    --glow-green: 0 0 15px rgba(34, 197, 94, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    /* Bottom padding for mobile nav bar */
    padding-bottom: 70px; 
}

/* Hide auth loading smoothly */
body.auth-loading {
    visibility: hidden;
    opacity: 0;
}

/* Glassmorphic Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 209, 217, 0.2);
}

/* Neon Profit */
.neon-profit {
    color: var(--accent-green);
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.neon-profit-bg {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: var(--glow-green);
}

/* Touch Optimized Buttons */
.btn-touch {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-weight: 600;
}

/* Custom Table overrides for dark theme */
.table-dark-custom { 
    --bs-table-bg: transparent; 
    --bs-table-border-color: var(--border-color); 
    --bs-table-color: var(--text-primary); 
}

.table-dark-custom th {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.table-dark-custom td {
    vertical-align: middle;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.5rem;
    transition: color 0.2s;
}

.bottom-nav-item i {
    margin-bottom: 4px;
    width: 24px;
    height: 24px;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--accent-blue);
}

/* Responsive adjustment for Mobile Nav */
@media (min-width: 993px) {
    .bottom-nav {
        display: none !important; /* Hide on desktop */
    }
    body {
        padding-bottom: 0; /* Reset body padding on desktop */
    }
}
