:root {
    --flex-bg: #07111f;
    --flex-bg-2: #081321;
    --flex-card: #0c1727;
    --flex-card-2: #101d31;
    --flex-orange: #ff5f00;
    --flex-orange-light: #ff8a1f;
    --flex-text: #ffffff;
    --flex-muted: #94a3b8;
}

/* PAGE */
html,
body {
    min-height: 100vh;
}

body {
    background:
        radial-gradient(circle at top right, rgba(255,95,0,0.10), transparent 25%),
        radial-gradient(circle at bottom left, rgba(255,95,0,0.08), transparent 25%),
        linear-gradient(180deg, var(--flex-bg) 0%, var(--flex-bg-2) 100%);
    color: var(--flex-text);
    font-family: Inter, system-ui, sans-serif;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(180deg, rgba(5,10,18,0.96), rgba(9,17,30,0.96)) !important;
    border-bottom: 1px solid rgba(255,95,0,0.16);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    padding-top: 14px;
    padding-bottom: 14px;
}

.navbar-brand {
    color: white !important;
    font-size: 1.5rem;
    font-weight: 900;
}

.navbar .nav-link {
    color: #e2e8f0 !important;
    font-weight: 600;
    transition: 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--flex-orange) !important;
}

.navbar .dropdown-menu {
    background: linear-gradient(180deg, #0f172a, #111827);
    border: 1px solid rgba(255,95,0,0.14);
    border-radius: 14px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.35);
}

.navbar .dropdown-item {
    color: #e2e8f0;
    font-weight: 600;
}

.navbar .dropdown-item:hover {
    background: rgba(255,95,0,0.10);
    color: white;
}

/* TYPOGRAPHY */
.page-title {
    font-size: 3.3rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: white;
    margin-bottom: 6px;
}

.page-subtitle {
    color: #cbd5e1;
    font-size: 1.08rem;
}

/* FORMS */
.form-control,
.form-select {
    background: rgba(15,23,42,0.72);
    border: 1px solid rgba(255,95,0,0.16);
    color: white;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
    background: rgba(15,23,42,0.92);
    color: white;
    border-color: rgba(255,95,0,0.45);
    box-shadow: 0 0 0 4px rgba(255,95,0,0.14);
}

/* CARDS */
.card,
.flex-card {
    background: linear-gradient(180deg, var(--flex-card), var(--flex-card-2));
    border: 1px solid rgba(255,95,0,0.18);
    color: white;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: white;
    font-weight: 800;
}

.card-body {
    color: white;
}

/* BUTTONS */
.btn-primary,
.btn-success,
.btn-outline-primary,
.btn-flex {
    border: none !important;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--flex-orange), var(--flex-orange-light)) !important;
    color: #111827 !important;
    font-weight: 800;
    padding: 10px 16px;
    box-shadow: 0 10px 24px rgba(255,95,0,0.22);
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-success:hover,
.btn-outline-primary:hover,
.btn-flex:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff7320, #ff9b3d) !important;
    color: #111827 !important;
    box-shadow: 0 16px 30px rgba(255,95,0,0.30);
}

/* TABLES */
.table {
    margin-bottom: 0;
    color: #e2e8f0;
}

.table thead th {
    background: rgba(255,255,255,0.03);
    color: #cbd5e1;
    border: none;
    font-weight: 700;
}

.table td {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.04);
    color: #e2e8f0;
    vertical-align: middle;
}

.table-hover tbody tr:hover td {
    background: rgba(255,95,0,0.04);
    color: white;
}

/* BADGES */
.badge-total,
.badge-flex {
    background: linear-gradient(135deg, var(--flex-orange), var(--flex-orange-light)) !important;
    color: #111827 !important;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(255,95,0,0.24);
}

.badge.bg-success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: white;
    border-radius: 999px;
    padding: 6px 11px;
    font-weight: 800;
}

/* DATATABLES */
.dataTables_wrapper {
    color: #e2e8f0;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: rgba(15,23,42,0.72);
    border: 1px solid rgba(255,95,0,0.16);
    color: white;
    border-radius: 10px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    color: #cbd5e1;
}

.page-link {
    background: rgba(15,23,42,0.72);
    border-color: rgba(255,255,255,0.08);
    color: #e2e8f0;
}

.page-item.active .page-link {
    background: var(--flex-orange);
    border-color: var(--flex-orange);
    color: #111827;
}

/* MOBILE */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
}

.state-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    transition: all 0.24s ease;
}

.state-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    background: radial-gradient(rgba(255, 95, 0, 0.18), transparent 70%);
}

.state-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 95, 0, 0.45);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.38);
}

.state-header {
    padding: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.state-header h4 {
    font-size: 2rem;
    font-weight: 900;
    color: white;
}

.state-header small {
    color: #94a3b8;
}