/* assets/css/style.css - FULL UPDATED FOR TOP NAVBAR + MOBILE RESPONSIVE */

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --dark: #0f172a;
    --card: #1e2937;
    --border: #334155;
    --text: #e2e8f0;
    --muted: #94a3b8;
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e2937 100%);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    padding-top: 70px;
}

/* ==================== TOP NAVIGATION ==================== */
.top-nav {
    background: #1e2937 !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1050;
}

.navbar-brand {
    font-size: 1.45rem;
    font-weight: 700;
}

.nav-link {
    color: #cbd5e1 !important;
    padding: 10px 18px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-1px);
}

.dropdown-menu {
    background: #1e2937;
    border: 1px solid #475569;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.dropdown-item {
    color: #e2e8f0;
    padding: 10px 20px;
}

.dropdown-item:hover {
    background: var(--primary);
    color: white;
}

/* ==================== CARDS & CONTENT ==================== */
.card {
    background: var(--card);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.15);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.25);
}

.card-header {
    background: #334155;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

/* ==================== CHARTS ==================== */
.chart-container {
    position: relative;
    height: 420px;
    min-height: 300px;
    width: 100%;
}

@media (max-width: 992px) {
    .chart-container {
        height: 340px;
    }
}

/* Time Range Buttons */
.time-btn.active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    font-weight: 600;
}

/* ==================== FORMS & BUTTONS ==================== */
.form-control,
.form-select {
    background: #0f172a;
    border: 1px solid #475569;
    color: var(--text);
    border-radius: 10px;
    padding: 12px 16px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.25);
    color: white;
}

.btn-warning {
    background: var(--primary);
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-warning:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==================== TABLE ==================== */
.table-dark th {
    background: #334155;
    color: #e2e8f0;
    font-weight: 500;
}

/* ==================== ALERTS ==================== */
.alert {
    border-radius: 12px;
    border: none;
}

/* ==================== UTILITY ==================== */
small.text-muted {
    color: #64748b !important;
}

.text-warning {
    color: var(--primary) !important;
}

/* Fix for chart headers */
.card-header h6 {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.card-header {
    gap: 10px;
}

.btn-group-sm .btn {
    font-size: 0.8rem;
    padding: 4px 8px;
    min-width: 42px;
}