/* Professional Theme - No Gradients, Clean & Modern */

:root {
    /* Professional Color Palette */
    --primary-600: #1e40af;
    --primary-500: #3b82f6;
    --primary-400: #60a5fa;
    --primary-50: #eff6ff;
    
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #e2e8f0;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    
    --success-600: #059669;
    --success-500: #10b981;
    --success-50: #ecfdf5;
    
    --warning-600: #d97706;
    --warning-500: #f59e0b;
    --warning-50: #fffbeb;
    
    --danger-600: #dc2626;
    --danger-500: #ef4444;
    --danger-50: #fef2f2;
    
    --white: #ffffff;
    --black: #000000;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows - Subtle 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 0 rgba(0, 0, 0, 0.06);
    --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);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove ALL gradients */
body {
    background: var(--gray-50);
    font-family: var(--font-sans);
    color: var(--gray-900);
    line-height: 1.6;
}

/* Professional Sidebar - No Gradient */
.sidebar {
    background: var(--gray-900);
    border-right: 1px solid var(--gray-800);
    display: flex;
    flex-direction: column;
}

.sidebar .nav-link {
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    margin: 0.125rem 0;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.sidebar .nav-link.active {
    background: var(--primary-600);
    color: var(--white);
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--white);
    border-radius: 0 2px 2px 0;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar .nav-link span {
    flex: 1;
}

/* Professional Cards */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* Professional Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: var(--success-600);
    border-color: var(--success-600);
    color: var(--white);
}

.btn-success:hover {
    background: var(--success-500);
    border-color: var(--success-500);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary-600);
    color: var(--primary-600);
}

.btn-outline-primary:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: var(--white);
}

/* Professional Stats Cards */
.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-400);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.primary .stat-icon {
    background: var(--primary-50);
    color: var(--primary-600);
}

.stat-card.success .stat-icon {
    background: var(--success-50);
    color: var(--success-600);
}

.stat-card.warning .stat-icon {
    background: var(--warning-50);
    color: var(--warning-600);
}

.stat-card.danger .stat-icon {
    background: var(--danger-50);
    color: var(--danger-600);
}

/* Professional Table */
.table {
    background: var(--white);
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: none;
    padding: 0.75rem 1rem;
}

.table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Professional Badges */
.badge {
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

/* Professional Forms */
.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-50);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

/* Professional Navbar */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
}

/* Professional Alert (not gradient) */
.alert {
    border-left: 4px solid;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.alert-success {
    background: var(--success-50);
    border-left-color: var(--success-500);
    color: var(--success-600);
}

.alert-danger {
    background: var(--danger-50);
    border-left-color: var(--danger-500);
    color: var(--danger-600);
}

.alert-warning {
    background: var(--warning-50);
    border-left-color: var(--warning-500);
    color: var(--warning-600);
}

/* Login Page - NO GRADIENT */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

.login-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

/* Remove old gradient styles */
.bg-indigo-600,
.bg-green-600 {
    background: var(--primary-600) !important;
}

.text-indigo-600 {
    color: var(--primary-600) !important;
}

/* Micro-interactions and Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Button Hover Effects */
.btn {
    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.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-600);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Card Animations */
.card {
    animation: fadeIn 0.4s ease;
}

/* Table Row Animations */
.table tbody tr {
    animation: fadeIn 0.3s ease;
}

/* Badge Pulse Effect for Active Items */
.badge.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Tooltip Styles */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 0.75rem;
    background: var(--gray-900);
    color: var(--white);
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: var(--radius-sm);
    background: var(--gray-200);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-600);
    transition: width 0.6s ease;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Link Hover Effect */
a:not(.btn):not(.nav-link) {
    transition: color var(--transition-fast);
}

a:not(.btn):not(.nav-link):hover {
    color: var(--primary-600);
}

/* Image Hover Effect */
img {
    transition: transform var(--transition-base);
}

img:hover {
    transform: scale(1.02);
}

/* Smooth Transitions for All Interactive Elements */
button,
input,
select,
textarea,
.card,
.badge,
.alert {
    transition: all var(--transition-base);
}

