:root {
    --primary: #3f75af;
    /* Brand Blue */
    --primary-glow: rgba(63, 117, 175, 0.5);
    --secondary: #f5a216;
    /* Brand Orange */
    --secondary-glow: rgba(245, 162, 22, 0.5);
    --accent: #f5a216;
    --danger: #ef4444;

    /* Variable Defaults (Dark Mode) */
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-main-inverse: #0f172a;
    --card-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(15, 23, 42, 0.85);
    --input-bg: rgba(30, 41, 59, 0.6);
    --table-header: rgba(63, 117, 175, 0.12);
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-dark: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #334155;
    --text-main-inverse: #f8fafc;
    --card-border: rgba(63, 117, 175, 0.15);
    --nav-bg: rgba(255, 255, 255, 0.98);
    --input-bg: #ffffff;
    --table-header: rgba(63, 117, 175, 0.08);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    background-attachment: fixed;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    color: var(--text-main);
    box-shadow: var(--card-shadow);
}

.glass-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

.hover-glow:hover {
    animation: glow 2s infinite;
}

/* Components */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2c527a 100%);
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -1px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -3px var(--primary-glow);
}

.stat-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    background: rgba(63, 117, 175, 0.05);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Form Styles */
input,
select,
textarea {
    background: var(--input-bg) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-main) !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-glow) !important;
    outline: none !important;
}

::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Utils */
.text-white {
    color: var(--text-main) !important;
}

.text-slate-400 {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

.text-slate-500 {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

.text-slate-300 {
    color: var(--text-main) !important;
    opacity: 0.9;
}

.text-main {
    color: var(--text-main) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-inverse {
    color: var(--text-main-inverse) !important;
}

.bg-white\/5 {
    background-color: var(--table-header) !important;
}

.bg-indigo-500\/5 {
    background-color: var(--table-header) !important;
}

.border-white\/5 {
    border-color: var(--card-border) !important;
}

.divide-white\/5>*+* {
    border-color: var(--card-border) !important;
}

.bg-black\/20,
.bg-black\/30 {
    background-color: var(--table-header) !important;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2rem;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border: 1px solid var(--primary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.modal-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Specific Fix for Landing/Navbar Logo Text */
.bg-clip-text.text-transparent {
    background-image: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}