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

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #48bb78;
    --info: #4299e1;
    --warning: #ecc94b;
    --danger: #f56565;
    --light: #f7fafc;
    --dark: #1a202c;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #2d3748;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.navbar { padding: 12px 0; }
.navbar-brand { font-size: 1.4rem; letter-spacing: -0.5px; }
.navbar .btn-primary { border-radius: 50px; padding: 8px 24px; font-size: 0.9rem; }

.min-vh-75 { min-height: 75vh; }

.card { transition: all 0.2s ease; border: none; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; }

.btn { border-radius: 10px; font-weight: 600; font-size: 0.9rem; padding: 10px 20px; transition: all 0.2s; }
.btn-primary { background: var(--gradient); border: none; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }

.form-control {
    border-radius: 10px; padding: 12px 16px; border: 2px solid #e2e8f0;
    font-size: 0.95rem; transition: all 0.2s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(102,126,234,0.15); }
.form-label { font-size: 0.9rem; margin-bottom: 6px; color: #4a5568; }

.badge { font-weight: 500; padding: 6px 12px; border-radius: 50px; font-size: 0.8rem; }

.table { font-size: 0.9rem; }
.table th { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: #718096; border-top: none; }
.table td { vertical-align: middle; }

.toast-container { z-index: 9999; }
.toast { border-radius: 12px; }

.bg-primary { background: var(--gradient) !important; }
.bg-success { background: linear-gradient(135deg, #48bb78, #38a169) !important; }
.bg-warning { background: linear-gradient(135deg, #ecc94b, #d69e2e) !important; }
.bg-info { background: linear-gradient(135deg, #4299e1, #3182ce) !important; }
.bg-danger { background: linear-gradient(135deg, #f56565, #e53e3e) !important; }

.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04) !important; }
.rounded-4 { border-radius: 16px !important; }

a { text-decoration: none; }

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 999;
    border-top: 1px solid #e2e8f0;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #a0aec0;
    font-size: 0.65rem;
    padding: 4px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 60px;
}
.bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}
.bottom-nav-item.active {
    color: #667eea;
}
.bottom-nav-item.active i {
    color: #667eea;
}
.bottom-nav-item:hover {
    color: #667eea;
    background: rgba(102,126,234,0.05);
}

/* Add bottom padding for logged-in pages */
body.has-bottom-nav { padding-bottom: 65px; }

/* Ticker Bar */
.ticker-bar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    border-top: 3px solid rgba(255,255,255,0.2);
    border-bottom: 3px solid rgba(255,255,255,0.2);
    margin: 5px 0 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ticker-bar marquee {
    display: block;
    color: #fff;
}

@media (max-width: 768px) {
    .navbar .btn-primary { padding: 6px 16px; font-size: 0.8rem; }
    .card-body { padding: 1rem !important; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.1rem; }
    .table { font-size: 0.8rem; }
    .bottom-nav { padding: 4px 0; }
    .bottom-nav-item { min-width: 40px; font-size: 0.55rem; padding: 2px 6px; }
    .bottom-nav-item i { font-size: 1rem; }
}