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

:root {
    /* Brand Colors */
    --primary: #E31E24;
    --primary-hover: #C61A20;
    --primary-light: #fff5f5;
    
    /* Neutral Colors */
    --bg-main: #ffffff;
    --bg-white: #ffffff;
    --sidebar-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #64748b;
    --border-color: #f1f1f1;
    
    /* Semantic Colors */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    
    /* Spacing & Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-main: #000000;
    --bg-white: #0a0a0a;
    --sidebar-bg: #050505;
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --border-color: #1f1f1f;
    --primary-light: #2d1a1a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    outline: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Utility Classes */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.hidden { display: none !important; }

/* Utility Classes - Added for Dashboard Extensions */
.small { font-size: 0.8125rem; }
.smaller { font-size: 0.75rem; }
.flex-column { flex-direction: column; }
.border { border: 1px solid var(--border-color); }
.rounded { border-radius: var(--radius-md); }
.gap-6 { gap: 1.5rem; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.container-fluid {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
}

/* Dashboard Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .grid-2, .grid-3, .grid-sidebar {
        grid-template-columns: 1fr;
    }
}

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

.list-container {
    display: flex;
    flex-direction: column;
}

.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* Theme Toggle & Badge */
.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--border-color);
}

.nav-icons > i {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}
/* Status Pipeline Component */
.pipeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    margin: 1.5rem 0;
}

.pipeline-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

.pipeline-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 2;
    transform: translateY(-50%);
    transition: width 0.5s ease;
}

.pipeline-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    padding: 0 10px;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.pipeline-step.active .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pipeline-step.completed .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.pipeline-step.active .step-label {
    color: var(--text-main);
    font-weight: 700;
}

/* Empty State Styling */
.empty-state {
    padding: 3rem;
    text-align: center;
    background: var(--bg-white);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}
