:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #6366f1;
    /* Indigo */
    --primary-hover: #4f46e5;
    --secondary: #64748b;
    --text-main: #f1f5f9;
    --text-muted: #cbd5e1;
    --border: #334155;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* --- Typography - Ensure all text is visible --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main) !important;
}

p,
span,
div,
label,
small {
    color: var(--text-main) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* --- Glassmorphism Cards --- */
.card {
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    color: var(--text-main);
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: var(--text-main) !important;
}

/* --- Buttons & Inputs --- */
.form-control,
.form-select {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    color: var(--text-main) !important;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
    color: var(--text-main) !important;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ec4899);
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    color: white !important;
}

/* --- Tables --- */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-border-color: var(--border);
    color: var(--text-main) !important;
}

.table td,
.table th {
    color: var(--text-main) !important;
}

.table-hover>tbody>tr:hover>* {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.08);
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(15, 23, 42, 0.95) !important;
}

.navbar-brand,
.nav-link {
    color: var(--text-main) !important;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.dropdown-menu {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
}

.dropdown-item {
    color: var(--text-main) !important;
}

.dropdown-item:hover {
    background-color: rgba(99, 102, 241, 0.2);
    color: white !important;
}

/* --- Lists --- */
.list-group-item {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-main) !important;
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary) !important;
}

/* --- Alerts --- */
.alert-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.3);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.3);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.3);
}

/* --- Badges --- */
.badge {
    color: white !important;
}

/* --- Modal --- */
.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.modal-header {
    border-bottom-color: var(--border);
}

.modal-footer {
    border-top-color: var(--border);
}

/* --- Forms --- */
.form-label {
    color: var(--text-muted) !important;
    font-weight: 500;
}

.form-text {
    color: var(--text-muted) !important;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* --- Pricing Cards --- */
.pricing-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border);
    transition: transform 0.3s;
    color: var(--text-main);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.pricing-card h4,
.pricing-card h2 {
    color: var(--text-main) !important;
}

.pricing-card .text-muted {
    color: var(--text-muted) !important;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.15), rgba(30, 41, 59, 0.9));
}

/* --- Links --- */
a {
    color: #818cf8;
}

a:hover {
    color: #a5b4fc;
}

/* --- Code & Monospace --- */
code,
pre,
.font-monospace {
    color: #e2e8f0 !important;
}