@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Palette */
    --primary: #0D9488;
    --primary-light: #CCFBF1;
    --primary-dark: #0F766E;

    /* Neutral Palette (Light - Default) */
    --bg-main: #F9FAFB;
    --bg-card: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;

    /* Feedback */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;

    /* Spacing & Shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Unique Accents */
    --accent-glow: rgba(13, 148, 136, 0.4);
    --mesh-1: #0D9488;
    --mesh-2: #2DD4BF;
    --mesh-3: #99F6E4;
}

/* Global Branding Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), #2DD4BF, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    letter-spacing: -0.5px;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.logo-img {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-container:hover .logo-img {
    transform: rotate(15deg) scale(1.1);
}

[data-theme="dark"] {
    --bg-main: #020617;
    --bg-card: rgb(0 0 0 / 28%);
    --bg-cards: rgb(0 0 0 / 92%);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.1);
    --primary-light: rgba(13, 148, 136, 0.15);
    --accent-glow: rgba(239, 68, 68, 0.3);

    /* Request: Change colors to red in dark mode */
    --primary: #EF4444;
    --success: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s ease;
    overflow-x: hidden;
}

/* Advanced Glassmorphism */
.glass-ultra {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .glass-ultra {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Animations: The "Unique" Touch */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    70% {
        box-shadow: 0 0 40px 10px rgba(13, 148, 136, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
    }
}

@keyframes mesh-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.mesh-bg {
    background: linear-gradient(-45deg, var(--mesh-1), var(--mesh-2), var(--mesh-3), var(--primary));
    background-size: 400% 400%;
    animation: mesh-gradient 15s ease infinite;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

/* Utility Classes */
.card {
    background: var(--bg-cards);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass {
    background: rgb(39 39 39 / 70%);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

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

.animate-slide {
    animation: slideInLeft 0.5s ease forwards;
}

/* Responsive Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Fluid Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Flex/Grid Helper Utilities */
.flex-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

@media (max-width: 768px) {
    .flex-responsive {
        flex-direction: column;
    }
}

/* Fix for small screens */
@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .huge-text {
        font-size: 2.8rem !important;
        letter-spacing: -1px !important;
    }
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1200px) {
    .dashboard-grid.two-cols {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 992px) {
    .dashboard-grid.equal-cols {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}