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

/* --- CUSTOM THEME BASE --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
}

/* --- GLASSMORPHISM COMPONENTS --- */
.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- SIGNAL CARD INDICATORS --- */
.prediction-up { 
    border-left: 4px solid #10b981; 
}
.prediction-down { 
    border-left: 4px solid #ef4444; 
}
.prediction-settled { 
    border-left: 4px solid #64748b; 
    opacity: 0.9; 
}

/* --- INPUTS RESTYLING FOR DARK THEME --- */
input, select, textarea {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: white !important;
}

/* --- AUTONOMOUS SPINNING LOADERS --- */
.custom-loader {
    width: 20px;
    height: 20px;
    border: 2px solid #334155;
    border-bottom-color: #38bdf8;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

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

/* --- CUSTOM COMPACT SCROLLBARS --- */
::-webkit-scrollbar { 
    width: 6px; 
}
::-webkit-scrollbar-track { 
    background: #0f172a; 
}
::-webkit-scrollbar-thumb { 
    background: #334155; 
    border-radius: 10px; 
}

/* --- COIN PICKER SELECTIONS --- */
.asset-active {
    border-color: #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
}

#asset-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

#asset-dropdown.open {
    display: block;
}

/* --- TOAST NOTIFICATION STYLING & ANIMATION --- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1.25rem 1.75rem;
    border-radius: 1rem;
    background: #1e293b;
    border: 1px solid #3b82f6;
    color: white;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
}
.toast.show { 
    transform: translateY(0); 
}

/* --- RESOLUTION BLINKING INDICATORS --- */
.settling-pulse {
    animation: pulse-bg 1s infinite;
}
@keyframes pulse-bg {
    0% { background-color: rgba(59, 130, 246, 0.1); }
    50% { background-color: rgba(59, 130, 246, 0.3); }
    100% { background-color: rgba(59, 130, 246, 0.1); }
}

/* --- NAVIGATION LINK STATES --- */
.nav-link.active {
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
}
