/* --- Global Resets & Fonts --- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Custom Scrollbar (Webkit) --- */
/* Makes the scrollbar look cleaner on Chrome/Edge/Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9; /* Slate-100 */
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* Slate-300 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* Slate-400 */
}

/* --- Utility Classes (Custom) --- */

/* Hide scrollbar but allow scrolling */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Glassmorphism Effect Card */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- Loading Spinner Animation --- */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6; /* Blue-500 */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Transitions --- */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* MOBILE-FIRST GLOBAL RESETS                  */
/* ============================================ */

/* Fix iOS font-size auto-inflate inside inputs */
input, select, textarea {
    font-size: 16px !important;
}

/* Native-feel tap highlight removal */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth momentum scrolling on iOS */
.overflow-y-auto, [style*="overflow-y:auto"], [style*="overflow-y: auto"] {
    -webkit-overflow-scrolling: touch;
}

/* Remove default iOS button styling */
button {
    -webkit-appearance: none;
    touch-action: manipulation;
}

/* Active state feedback on touch */
@media (max-width: 768px) {
    button:active, a:active {
        opacity: 0.7;
        transform: scale(0.97);
        transition: all 0.1s;
    }
    /* Prevent double-tap zoom */
    * {
        touch-action: manipulation;
    }
}
