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

:root {
    --primary: #ffffff;
    --secondary: #f8fafc;
    --tertiary: #f1f5f9;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Card styles */
.card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card-hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--border);
}

/* Navigation */
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--tertiary);
}

.nav-link.active {
    color: var(--accent);
    background: #f0f9ff;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: white;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--primary);
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--tertiary);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Form elements */
.form-select, .form-input {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Department badges */
.dept-support { 
    background: #ecfdf5; 
    color: #059669;
}

.dept-sales { 
    background: #f3e8ff; 
    color: #7c3aed;
}

.dept-trust { 
    background: #fff7ed; 
    color: #ea580c;
}

/* Shift badges */
.shift-morning { 
    background: #eff6ff; 
    color: #2563eb;
}

.shift-day { 
    background: #f0f9ff; 
    color: #0891b2;
}

.shift-evening { 
    background: #faf5ff; 
    color: #9333ea;
}

/* Score colors */
.score-excellent { color: #059669; }
.score-good { color: #0891b2; }
.score-average { color: #d97706; }
.score-poor { color: #dc2626; }

.bg-score-excellent { 
    background: #ecfdf5; 
    color: #059669;
}

.bg-score-good { 
    background: #f0f9ff; 
    color: #0891b2;
}

.bg-score-average { 
    background: #fffbeb; 
    color: #d97706;
}

.bg-score-poor { 
    background: #fef2f2; 
    color: #dc2626;
}

/* Avatar */
.avatar {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: white;
    font-weight: 600;
}

.avatar-initials {
    background: var(--tertiary);
    color: var(--text-secondary);
    font-weight: 600;
}

/* Status indicators */
.status-online {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px white;
}

/* Progress bars */
.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

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

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

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

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}