/* =========================================
   1. Base & Reset
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   2. Global Scrollbars (Cyber/Pro Look)
   ========================================= */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background-color: #cbd5e1; 
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
}

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

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

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

/* =========================================
   3. Terminal Specific Scrollbar
   ========================================= */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(100, 116, 139, 0.4); 
    border-radius: 20px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100, 116, 139, 0.7);
}

/* =========================================
   4. Animations
   ========================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =========================================
   5. Theme Switcher Slider Logic
   ========================================= */
/* Updated to use classes for multiple instances (Desktop + Mobile) */
.theme-switch-container button {
    position: relative;
    z-index: 10;
    outline: none;
    transition: color 0.2s ease;
}

.dark .theme-switch-container button:hover {
    color: #f8fafc;
}

.theme-switch-container button:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 9999px;
}