:root {
    --bs-primary: #6366F1;
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-border-radius-xl: 16px;
}

body {
    -webkit-font-smoothing: antialiased;
    background-color: #f8fafc !important;
}

/* Auth Backdrop */
#auth-overlay {
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
}

.sidebar {
    width: 280px !important;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1040;
}

@media (min-width: 992px) {
    .main-content {
        margin-left: 280px;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 0 0 50px rgba(0,0,0,0.1);
    }
    .sidebar.show {
        transform: translateX(0);
    }
}

/* Custom Navigation Highlight */
.sidebar .nav-link {
    border-radius: 0 !important;
    padding: 0.75rem 1.25rem;
    color: #4b5563 !important;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: #f8fafc;
}

.sidebar .nav-link.active {
    background-color: #EEF2FF !important;
    color: #6366F1 !important;
    border-left: 3px solid #6366F1;
    font-weight: 600;
    padding-left: calc(1.25rem - 3px) !important;
}

/* Editable Cell Borders */
.editable-cell {
    cursor: text;
    border-bottom: 1px dashed #cbd5e1;
    transition: all 0.2s;
}
.editable-cell:focus {
    outline: 2px solid var(--bs-primary);
    background-color: #ffffff;
    border-radius: 4px;
    border-bottom: 1px solid transparent;
}

/* Chart Canvas Sizing */
.chart-container {
    width: 100%;
}

/* Hover Utilities */
.hover-bg-light:hover { background-color: #f8f9fa !important; }
.hover-bg-danger:hover { background-color: #fee2e2 !important; color: #dc2626 !important; }

.shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

