

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Primary Brand Colors - Fresh Blue */
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --primary-ultra-light: #DBEAFE;
    
    /* Secondary Colors */
    --secondary: #6B7280;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #06B6D4;
    
    /* Neutral Grays - Light Theme */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Background Colors */
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-hover: #F9FAFB;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    
    /* Shadows - Soft and Professional */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Gradients - Subtle and Modern */
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    --gradient-warning: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-info: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 50%, #F9FAFB 100%);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ========== NAVBAR - Clean & Light ========== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary) !important;
    transition: all 0.3s ease;
}

.navbar-brand i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    color: var(--primary-dark) !important;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700) !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: var(--radius);
    margin: 0 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-link i {
    font-size: 1.05rem;
    margin-right: 0.5rem;
}

.dropdown-menu {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    margin-top: 0.75rem;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
    transform: translateX(5px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

/* ========== CARDS - Clean & Elevated ========== */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: var(--white);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--gray-300);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

/* ========== STAT CARDS - Modern & Clean ========== */
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.stat-card h6 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.stat-card h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.stat-icon.bg-primary {
    background: var(--gradient-primary);
}

.stat-icon.bg-success {
    background: var(--gradient-success);
}

.stat-icon.bg-danger {
    background: var(--gradient-danger);
}

.stat-icon.bg-warning {
    background: var(--gradient-warning);
}

.stat-icon.bg-info {
    background: var(--gradient-info);
}

/* ========== PROJECT CARDS ========== */
.project-card {
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-card .card-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

/* ========== PROGRESS BARS ========== */
.progress {
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========== BADGES - Colorful & Modern ========== */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-xs);
    border: 1px solid transparent;
}

.badge.bg-primary {
    background: var(--primary);
    border-color: var(--primary-dark);
}

.badge.bg-success {
    background: var(--success);
    border-color: #059669;
}

.badge.bg-danger {
    background: var(--danger);
    border-color: #DC2626;
}

.badge.bg-warning {
    background: var(--warning);
    color: white;
    border-color: #D97706;
}

.badge.bg-info {
    background: var(--info);
    border-color: #0891B2;
}

.badge.bg-secondary {
    background: var(--gray-500);
    border-color: var(--gray-600);
}

/* ========== BUTTONS - Premium & Clean ========== */
.btn {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px 0 rgba(59, 130, 246, 0.45);
}

.btn-success {
    background: var(--success);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-3px);
}

.btn-danger {
    background: var(--danger);
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.39);
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-3px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-outline-secondary {
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.btn-outline-success {
    border: 2px solid var(--success);
    color: var(--success);
}

.btn-outline-success:hover {
    background: var(--success);
    color: white;
}

.btn-outline-warning {
    border: 2px solid var(--warning);
    color: var(--warning);
}

.btn-outline-warning:hover {
    background: var(--warning);
    color: white;
}

.btn-outline-danger {
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn i {
    margin-right: 0.5rem;
}

/* ========== TABLES - Clean & Professional ========== */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--gray-50);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    color: var(--gray-700);
    border: none;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-200);
}

.table-hover tbody tr:hover {
    background: var(--gray-50);
    transform: scale(1.005);
    box-shadow: var(--shadow-xs);
}

.table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border: none;
    color: var(--text-primary);
}

/* ========== FORMS - Modern & Clean ========== */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 2px solid var(--gray-300);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    background: var(--white);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    background: var(--white);
}

.form-label {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-right: none;
    color: var(--gray-600);
    font-weight: 600;
}

.form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--gray-300);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-left: 0.5rem;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* ========== ALERTS - Clean & Modern ========== */
.alert {
    border-radius: var(--radius-lg);
    border: 1px solid;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

.alert-danger {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

.alert-warning {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

.alert-info {
    background: #F0F9FF;
    border-color: #BAE6FD;
    color: #075985;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    margin-top: 4rem;
    padding: 2.5rem 0;
    box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* ========== KANBAN BOARD ========== */
.kanban-board {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.kanban-column {
    min-width: 360px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.kanban-header {
    padding: 1.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kanban-header.bg-secondary {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.kanban-header.bg-primary {
    background: var(--gradient-primary);
}

.kanban-header.bg-success {
    background: var(--gradient-success);
}

.kanban-cards {
    padding: 1.25rem;
    min-height: 400px;
    background: var(--gray-50);
}

.kanban-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary);
}

.kanban-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.kanban-card:active {
    cursor: grabbing;
    transform: rotate(2deg);
}

.kanban-card h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

/* ========== AVATAR CIRCLE ========== */
.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .stat-card, .project-card {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.25s; }

/* ========== SCROLLBAR - Clean ========== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius);
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .stat-card h2 {
        font-size: 2rem;
    }
    
    .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* ========== UTILITIES ========== */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--gray-50) !important; }

/* ========== LOADING SPINNER ========== */
.spinner-border {
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== MODAL ========== */
.modal-content {
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.75rem;
    background: var(--white);
}

.modal-body {
    padding: 1.75rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem;
    background: var(--gray-50);
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar, .breadcrumb, .btn, .card-footer, footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--gray-300) !important;
    }
    
    body {
        background: white;
    }
}