/* ============================================
   MODERN UI STYLESHEET - XELA INSPIRED
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #5B5FC7;
    --primary-light: #7B7FD7;
    --primary-dark: #4B4FB7;
    --secondary-color: #6C7A89;
    --success-color: #22C55E;
    --success-light: #DCFCE7;
    --warning-color: #F59E0B;
    --warning-light: #FEF3C7;
    --danger-color: #EF4444;
    --danger-light: #FEE2E2;
    --info-color: #3B82F6;
    --info-light: #DBEAFE;
    
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-card: #FFFFFF;
    
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-light: #CBD5E1;
    
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition: all 0.2s ease-in-out;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
}

/* Dark mode support */
[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-sidebar: #1E293B;
    --bg-card: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --border-color: #334155;
    --border-light: #1E293B;
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

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

/* ============================================
   LAYOUT - MODERN SIDEBAR
   ============================================ */

.app-container {
    display: flex;
    min-height: 100vh;
}

.modern-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.sidebar-brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.sidebar-search {
    padding: 1rem 1.5rem;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 95, 199, 0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section-title {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.nav-item {
    padding: 0 0.75rem;
    margin-bottom: 0.125rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-md);
}

.nav-link i {
    font-size: 1.125rem;
    width: 1.5rem;
    text-align: center;
}

.nav-link .badge {
    margin-left: auto;
    background: var(--danger-color);
    color: white;
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.user-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.user-widget:hover {
    background: var(--border-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb-nav a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-body {
    flex: 1;
    padding: 2rem;
}

/* ============================================
   CARDS - MODERN STYLE
   ============================================ */

.modern-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header-modern {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
}

.card-header-modern h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body-modern {
    padding: 1.5rem;
}

.card-footer-modern {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

/* ============================================
   STAT CARDS - DASHBOARD
   ============================================ */

.stat-card-modern {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.stat-card-modern.success::before { background: var(--success-color); }
.stat-card-modern.warning::before { background: var(--warning-color); }
.stat-card-modern.danger::before { background: var(--danger-color); }
.stat-card-modern.info::before { background: var(--info-color); }

.stat-card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-info h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.stat-change.positive { color: var(--success-color); }
.stat-change.negative { color: var(--danger-color); }

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

.stat-icon.primary {
    background: rgba(91, 95, 199, 0.1);
    color: var(--primary-color);
}

.stat-icon.success {
    background: var(--success-light);
    color: var(--success-color);
}

.stat-icon.warning {
    background: var(--warning-light);
    color: var(--warning-color);
}

.stat-icon.danger {
    background: var(--danger-light);
    color: var(--danger-color);
}

.stat-icon.info {
    background: var(--info-light);
    color: var(--info-color);
}

/* ============================================
   PROGRESS CIRCLE
   ============================================ */

.progress-circle-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle circle {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.progress-circle .progress-bg {
    stroke: var(--border-color);
}

.progress-circle .progress-bar {
    stroke: var(--primary-color);
    transition: stroke-dashoffset 0.5s ease;
}

.progress-circle-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

.legend-dot.active { background: var(--success-color); }
.legend-dot.pending { background: var(--warning-color); }
.legend-dot.completed { background: var(--primary-color); }
.legend-dot.review { background: var(--info-color); }

/* ============================================
   AVATARS & AVATAR GROUPS
   ============================================ */

.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--bg-secondary);
}

.avatar.sm { width: 32px; height: 32px; }
.avatar.lg { width: 48px; height: 48px; }
.avatar.xl { width: 64px; height: 64px; }

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--bg-secondary);
}

.avatar-group {
    display: flex;
}

.avatar-group .avatar,
.avatar-group .avatar-placeholder {
    margin-left: -0.75rem;
}

.avatar-group .avatar:first-child,
.avatar-group .avatar-placeholder:first-child {
    margin-left: 0;
}

.avatar-count {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    border: 2px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: -0.75rem;
}

/* ============================================
   BUTTONS - MODERN STYLE
   ============================================ */

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-modern.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 2px 4px rgba(91, 95, 199, 0.25);
}

.btn-modern.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 4px 8px rgba(91, 95, 199, 0.35);
    transform: translateY(-1px);
}

.btn-modern.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

.btn-modern.btn-success {
    background: linear-gradient(135deg, var(--success-color), #34D399);
    color: white;
}

.btn-modern.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #F87171);
    color: white;
}

.btn-modern.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-modern.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(91, 95, 199, 0.05);
}

.btn-modern.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-modern.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ============================================
   BADGES - MODERN STYLE
   ============================================ */

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.badge-modern.badge-primary {
    background: rgba(91, 95, 199, 0.1);
    color: var(--primary-color);
}

.badge-modern.badge-success {
    background: var(--success-light);
    color: var(--success-color);
}

.badge-modern.badge-warning {
    background: var(--warning-light);
    color: var(--warning-color);
}

.badge-modern.badge-danger {
    background: var(--danger-light);
    color: var(--danger-color);
}

.badge-modern.badge-info {
    background: var(--info-light);
    color: var(--info-color);
}

.badge-modern.badge-secondary {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

/* Status badges */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.status-dot.active { background: var(--success-color); }
.status-dot.pending { background: var(--warning-color); }
.status-dot.inactive { background: var(--text-muted); }
.status-dot.error { background: var(--danger-color); }

/* ============================================
   TABLES - MODERN STYLE
   ============================================ */

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern thead th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.table-modern tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.table-modern tbody tr:hover {
    background: var(--bg-primary);
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   FORMS - MODERN STYLE
   ============================================ */

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 95, 199, 0.1);
}

.form-input-modern::placeholder {
    color: var(--text-muted);
}

.form-select-modern {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748B' d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat right 1rem center;
    background-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    transition: var(--transition);
}

.form-select-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 95, 199, 0.1);
}

.form-checkbox-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox-modern input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    appearance: none;
    transition: var(--transition);
}

.form-checkbox-modern input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================================
   TABS - MODERN STYLE
   ============================================ */

.tabs-modern {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-primary);
    padding: 0.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.tab-item {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.tab-item:hover {
    color: var(--text-primary);
}

.tab-item.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   NOTIFICATIONS & ALERTS
   ============================================ */

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--border-light);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.alert-modern {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.alert-modern.alert-success {
    background: var(--success-light);
    color: #166534;
}

.alert-modern.alert-warning {
    background: var(--warning-light);
    color: #92400E;
}

.alert-modern.alert-danger {
    background: var(--danger-light);
    color: #991B1B;
}

.alert-modern.alert-info {
    background: var(--info-light);
    color: #1E40AF;
}

/* ============================================
   LIST ITEMS - MODERN STYLE
   ============================================ */

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

.list-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.list-item-modern:last-child {
    border-bottom: none;
}

.list-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.list-item-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.list-item-meta {
    text-align: right;
}

.list-item-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.list-item-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ============================================
   PRIORITY BADGES
   ============================================ */

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.priority-badge.high {
    background: var(--danger-light);
    color: var(--danger-color);
}

.priority-badge.medium {
    background: var(--warning-light);
    color: var(--warning-color);
}

.priority-badge.low {
    background: var(--success-light);
    color: var(--success-color);
}

.priority-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: currentColor;
}

/* ============================================
   CALENDAR MINI
   ============================================ */

.mini-calendar {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day-name {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.calendar-day {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day:hover {
    background: var(--bg-primary);
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
}

.calendar-day.selected {
    background: var(--primary-light);
    color: white;
}

.calendar-day.other-month {
    color: var(--text-muted);
}

.calendar-day.has-event::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    margin: 0.125rem auto 0;
}

/* ============================================
   WELCOME CARD
   ============================================ */

.welcome-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

.welcome-card-content {
    position: relative;
    z-index: 1;
}

.welcome-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-card p {
    opacity: 0.9;
    margin-bottom: 0;
}

.welcome-card-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.2;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .modern-sidebar {
        transform: translateX(-100%);
    }
    
    .modern-sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .content-header {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .header-title h1 {
        font-size: 1.15rem;
    }
    
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .content-body {
        padding: 1rem;
    }
    
    .stat-card-modern {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* Page headers: titre + boutons */
    .page-header-responsive {
        flex-wrap: wrap !important;
        gap: 0.75rem;
    }
    
    .page-header-responsive h2 {
        font-size: 1.2rem;
        width: 100%;
    }
    
    .page-header-responsive .btn-group,
    .page-header-responsive .page-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .page-header-responsive .btn-group .btn,
    .page-header-responsive .page-actions .btn {
        flex: 1 1 auto;
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
        white-space: nowrap;
    }
    
    /* Tables responsive */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem 0.4rem;
        white-space: nowrap;
    }
    
    /* Cards */
    .modern-card .card-header-modern {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .card-body-modern {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .content-header {
        padding: 0.5rem 0.75rem;
    }

    .content-body {
        padding: 0.75rem;
    }
    
    .header-title h1 {
        font-size: 1rem;
    }
    
    .page-header-responsive .btn-group .btn,
    .page-header-responsive .page-actions .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
    }
    
    .stat-card-modern {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-info h3 {
        font-size: 0.75rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

.animate-slide-in {
    animation: slideIn 0.3s ease forwards;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary-light { background: rgba(91, 95, 199, 0.1) !important; }
.bg-success-light { background: var(--success-light) !important; }
.bg-warning-light { background: var(--warning-light) !important; }
.bg-danger-light { background: var(--danger-light) !important; }
.bg-info-light { background: var(--info-light) !important; }

.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-2xl { border-radius: var(--radius-2xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

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