:root {
    --bg-main: #0f172a; /* Slate 900 */
    --bg-card: #1e293b; /* Slate 800 Solid */
    --bg-sidebar: #0f172a;
    --border-color: #334155; /* Slate 700 */
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --font-sans: "Outfit", sans-serif;
    --font-mono: "Fira Code", monospace;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: #ffffff;
}

/* Global Text Override */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: #ffffff !important;
}

p,
span,
div,
label,
li,
td,
th,
i {
    color: #ffffff !important;
}

/* Brighten muted and small text significantly */
.text-muted,
small,
.small {
    color: #e2e8e0 !important; /* Slate 200 - very bright */
}

/* Utilities */
.bg-main {
    background-color: var(--bg-main);
    color: #fff;
}
.text-gradient {
    color: #fff;
}
.bg-white-5 {
    background-color: #334155;
}
.bg-white-10 {
    background-color: #475569;
}
.border-white-10 {
    border-color: var(--border-color) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.85) !important; /* Even brighter */
}

/* Placeholders - Global Brightening */
::placeholder {
    color: #94a3b8 !important; /* Slate 400 - Clear gray-white */
    opacity: 0.8 !important;
}

:-ms-input-placeholder {
    color: #94a3b8 !important;
}

::-ms-input-placeholder {
    color: #94a3b8 !important;
}

/* Mobile Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6); /* Slate-900 with opacity */
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.sidebar-container {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
}
@media (max-width: 991.98px) {
    .sidebar-container {
        transform: translateX(-100%);
    }
    .sidebar-container.show {
        transform: translateX(0);
    }
}
.main-content-wrapper {
    margin-left: 0;
}
@media (min-width: 992px) {
    .main-content-wrapper {
        margin-left: 280px;
    }
}

/* Animations enabled for Pro Max UI */
.transition-all {
    transition: all 0.2s ease-in-out;
}
.hover-scale {
    transition: transform 0.2s ease;
}
.hover-scale:hover {
    transform: translateY(-2px);
}
.hover-white:hover {
    color: #fff !important;
}

/* Sidebar Links */
.nav-link-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    margin: 4px 12px;
}
.nav-link-premium:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.nav-link-premium.active {
    background: #0ea5e9;
    color: #fff;
}
.nav-link-premium.active:hover {
    background: #0ea5e9;
    color: #fff;
}

/* Glass Components */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* Form Controls */
.form-control-premium {
    background: #0f172a;
    border: 1px solid var(--border-color);
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 12px;
}
.form-control-premium::placeholder {
    color: #cbd5e1 !important; /* Bright Slate 300 for premium inputs */
    opacity: 1 !important;
}
.form-control-premium:focus {
    background: #0f172a;
    border-color: var(--primary-color);
    color: #fff;
    outline: none;
    box-shadow: none;
}
.input-group-text {
    border-color: var(--border-color);
    background: #1e293b;
    color: #ffffff;
}

/* Badges */
.badge-premium {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-hyper {
    background: #581c87;
    color: #e9d5ff;
}
.badge-standard {
    background: #0369a1;
    color: #bae6fd;
}

/* Buttons */
.btn-premium {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-weight: 600;
}
.btn-premium:hover,
.btn-premium:focus,
.btn-premium:active {
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Progress */
.progress {
    background-color: #334155;
}

/* Bootstrap Overrides */
a {
    text-decoration: none !important;
}
a:hover {
    color: inherit !important;
}
.btn:hover {
    background-color: inherit;
    border-color: inherit;
    color: inherit;
}
