
body {
    font-family: 'Inter', sans-serif;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Tab & Card Transitions */
.tab-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    border-bottom-color: #4f46e5;
    color: #4f46e5;
}
.dark .tab-btn.active {
    border-bottom-color: #818cf8;
    color: #818cf8;
}

/* Model Button Active state */
.model-btn.active {
    border-color: #4f46e5;
    background-color: #f5f3ff;
    color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}
.dark .model-btn.active {
    border-color: #818cf8;
    background-color: rgba(79, 70, 229, 0.1);
    color: #a5b4fc;
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

/* Gantt Chart Styling */
.gantt-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    border: 1px solid var(--g-border);
    border-radius: 12px;
    overflow: hidden;
}
.dark .gantt-grid {
    border-color: var(--g-border);
}

.gantt-row {
    display: contents;
}

.gantt-label {
    padding: 12px 16px;
    border-bottom: 1px solid var(--g-border);
    background-color: var(--g-bg);
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}
.dark .gantt-label {
    background-color: var(--g-surface);
    border-bottom-color: var(--g-border);
}

.gantt-timeline {
    position: relative;
    padding: 12px 0;
    border-bottom: 1px solid var(--g-border);
    min-height: 48px;
    background-image: repeating-linear-gradient(90deg, transparent, transparent calc(100% / 18 - 1px), #f1f5f9 calc(100% / 18 - 1px), #f1f5f9 calc(100% / 18));
}
.dark .gantt-timeline {
    border-bottom-color: var(--g-border);
    background-image: repeating-linear-gradient(90deg, transparent, transparent calc(100% / 18 - 1px), #334155 calc(100% / 18 - 1px), #334155 calc(100% / 18));
}

.gantt-bar {
    position: absolute;
    height: 24px;
    border-radius: 6px;
    background: var(--g-accent);
    color: var(--g-on-accent);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    cursor: default;
}
.gantt-bar:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.gantt-milestone {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #ef4444;
    transform: rotate(45deg);
    top: 50%;
    margin-top: -7px;
    border: 2px solid white;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: default;
}
.dark .gantt-milestone {
    border-color: #1e293b;
}

/* Heatmap cells */
.workload-cell {
    transition: all 0.2s ease;
}
.workload-cell.overload {
    background-color: #fee2e2;
    color: #991b1b;
}
.dark .workload-cell.overload {
    background-color: #991b1b50;
    color: #fca5a5;
}
.workload-cell.optimal {
    background-color: #dcfce7;
    color: #166534;
}
.dark .workload-cell.optimal {
    background-color: #16653450;
    color: #86efac;
}
.workload-cell.underloaded {
    background-color: var(--g-surface-2);
    color: var(--g-text-2);
}
.dark .workload-cell.underloaded {
    background-color: #33415550;
    color: var(--g-text-3);
}









/* Donut Chart Styling */
.donut-chart {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto;
}

.donut-chart-svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.05));
    overflow: visible;
}

.donut-chart-background {
    fill: none !important;
    stroke: #e2e8f0; /* slate-200 */
    stroke-width: 3.5;
}

.dark .donut-chart-background {
    stroke: #334155; /* slate-700 */
}

.donut-chart-foreground {
    fill: none !important;
    stroke: #4f46e5; /* indigo-600 */
    stroke-width: 3.5;
    stroke-dasharray: 0 1000;
    stroke-linecap: round;
    transition: stroke-dasharray 1.2s ease-in-out, stroke 0.3s ease;
}

.dark .donut-chart-foreground {
    stroke: #818cf8; /* indigo-400 */
}

.donut-chart-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: #4f46e5; /* indigo-600 */
}

.dark .donut-chart-text {
    color: #818cf8; /* indigo-400 */
}
