/* CostPilot - Custom CSS */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Chart container */
.chart-container {
    position: relative;
    width: 100%;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(16, 163, 127, 0.1);
    border-top-color: #10A37F;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

/* Pulse animation for sync indicator */
.sync-pulse {
    animation: syncPulse 2s ease-in-out infinite;
}

@keyframes syncPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Provider card hover */
.provider-card {
    transition: all 0.2s ease;
}
.provider-card:hover {
    transform: translateY(-2px);
}

/* Table styles */
.data-table th {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Toast notification */
.toast {
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 4.7s;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Input focus styles for dark theme */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.3);
}
