/* ============================================
   TaskFlow - Professional Task Management
   Custom Styles (Bootstrap 5 Extended)
============================================ */

/* ===== CSS Variables ===== */
:root {
    --primary: #0066CC;
    --primary-dark: #004999;
    --secondary: #6C757D;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    --sidebar-bg: #1a1d2e;
    --sidebar-hover: #252a3d;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Typography ===== */
body {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #243047;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #172033;
}

h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.625rem; }
h3, .h3 { font-size: 1.375rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.875rem; }

.form-label,
.form-check-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.form-control,
.form-select {
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.btn {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
}

.table {
    font-size: 0.875rem;
}

.table > :not(caption) > * > * {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.small,
small,
.form-text {
    font-size: 0.8125rem;
}

/* ===== Sidebar Styles ===== */
.sidebar {
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, #16192b 100%);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: var(--sidebar-hover);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ===== Card Styles ===== */
.card {
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stats-card {
    border-left: 4px solid var(--primary);
}

.stats-card:hover {
    transform: translateY(-4px);
}

/* ===== Button Styles ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

/* ===== Table Styles ===== */
.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

/* ===== Top Navbar ===== */
.top-navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
    }
}
