:root {
    /* Light Theme */
    --color-base: #f8fafc;
    /* slate-50 */
    --color-panel: #ffffff;
    --color-border: #e2e8f0;
    /* slate-200 */
    --color-text: #0f172a;
    /* slate-900 */
    --color-muted: #64748b;
    /* slate-500 */

    --color-primary: #0ea5e9;
    /* sky-500 */
    --color-primary-hover: #0284c7;
    /* sky-600 */
    --color-accent: #10b981;
    /* emerald-500 */
}

.dark {
    /* Dark Theme */
    --color-base: #0f172a;
    /* slate-900 */
    --color-panel: #1e293b;
    /* slate-800 */
    --color-border: #334155;
    /* slate-700 */
    --color-text: #f8fafc;
    /* slate-50 */
    --color-muted: #94a3b8;
    /* slate-400 */

    --color-primary: #38bdf8;
    /* sky-400 */
    --color-primary-hover: #7dd3fc;
    /* sky-300 */
    --color-accent: #34d399;
    /* emerald-400 */
}

/* Base resets handled by Tailwind */

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

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #475569;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #64748b;
}

/* Form Styles */
input,
textarea {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

textarea {
    min-height: 80px;
}

/* Glassmorphism utilities */
.glass-nav {
    background: rgba(var(--color-panel), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-blur {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Text Selection */
.custom-selection::selection {
    background: rgba(14, 165, 233, 0.3);
    color: inherit;
}

.dark .custom-selection::selection {
    background: rgba(56, 189, 248, 0.3);
}

/* Animations */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.pulse-dot {
    animation: pulse-ring 2s infinite;
}

/* Sidebar item animation */
.library-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.library-item:hover {
    transform: translateX(4px);
}