@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Premium Dark Theme (Default) */
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --secondary: #ec4899;
    --accent: #14b8a6;

    /* Backgrounds with Alpha for Glassmorphism */
    --bg-body: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Translucent Slate 800 */
    --bg-surface: rgba(51, 65, 85, 0.5);
    /* Translucent Slate 700 */

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;

    --border: rgba(255, 255, 255, 0.08);
    /* Subtle border */

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.15);
    /* Primary Glow */

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 1rem;
    /* More rounded */
}

/* Light Mode Variables override */
body.light-mode {
    --bg-body: #f1f5f9;
    /* Slightly darker white for contrast */
    --bg-card: rgba(255, 255, 255, 0.9);
    /* More opaque */
    --bg-surface: rgba(226, 232, 240, 0.8);
    /* Slate 200 */
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: rgba(0, 0, 0, 0.1);
    /* Stronger border */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    /* Ambient Background Gradient for Glass Effect */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(34, 197, 94, 0.15) 0%, transparent 40%);
    /* Green instead of Pink */
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    background: var(--bg-surface);
}

/* Utilities */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.text-center {
    text-align: center;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}