:root {
    --primary-color: #4f46e5;
    /* Refined Indigo */
    --secondary-color: #4338ca;
    --accent-color: #818cf8;
    --text-dark: #0f172a;
    /* Slate 900 */
    --text-light: #64748b;
    /* Slate 500 */
    --bg-light: #f8fafc;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--bg-light);
    letter-spacing: -0.01em;
}

/* Premium Card Styling */
.card {
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: premiumFadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Button & UI Components */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    padding: 10px 24px !important;
    font-weight: 600 !important;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* Soft Color Backgrounds */
.bg-primary-soft {
    background-color: rgba(99, 102, 241, 0.08);
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.08);
}

.bg-danger-soft {
    background-color: rgba(239, 68, 68, 0.08);
}

.bg-warning-soft {
    background-color: rgba(245, 158, 11, 0.08);
}

/* Modern Oversized Toggles */
.form-switch {
    padding-left: 4em !important;
    min-height: 2.2em;
    display: flex;
    align-items: center;
}

.form-switch .form-check-input {
    width: 3.4em !important;
    height: 1.8em !important;
    cursor: pointer;
    margin-left: -4em;
    border-radius: 2em;
    background-color: #cbd5e1;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-switch .form-check-input:checked {
    background-color: var(--success-color) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3.2' fill='%23fff'/%3e%3c/svg%3e") !important;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6,
.fw-bold {
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.very-small {
    font-size: 0.72rem;
}

.icon-box {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-box-sm {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-pills .nav-link {
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pills .nav-link.active {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px !important;
}

.hover-up:hover {
    transform: translateY(-6px);
}

/* Premium Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fw-black {
    font-weight: 900 !important;
}

.tracking-tighter {
    letter-spacing: -0.05em !important;
}

.tracking-widest {
    letter-spacing: 0.15em !important;
}

.extra-small {
    font-size: 0.68rem !important;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

.shadow-2l {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

.rounded-4 {
    border-radius: 1.25rem !important;
}

.rounded-5 {
    border-radius: 2rem !important;
}

.bg-soft-primary {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary-color) !important;
}

.bg-soft-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--success-color) !important;
}

.bg-soft-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--error-color) !important;
}

.bg-soft-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--warning-color) !important;
}

.transform-active:active {
    transform: scale(0.97);
}

.z-2000 {
    z-index: 2000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}