:root {
    --primary-indigo: #4f46e5;
    --primary-indigo-hover: #4338ca;
    --bg-light: #f1f5f9; /* Slightly darker slate tint */
    --surface-white: #ffffff;
    --surface-glass-light: rgba(255, 255, 255, 0.8);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-violet: #8b5cf6;
    --danger-red: #ef4444;
    --border-soft: #e2e8f0;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Header & Navbar Modernization (Light Pivot) */
.app-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(79, 70, 229, 0.05));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nav-link-custom {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--primary-indigo);
    background-color: rgba(79, 70, 229, 0.05);
}

.nav-link-custom.active {
    color: white;
    background-color: var(--primary-indigo);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1);
}

.user-badge {
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.logout-btn {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.logout-btn:hover {
    color: var(--danger-red);
}

/* Utils */
.card-glass {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-primary-modern {
    background-color: var(--primary-indigo);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary-modern:hover {
    background-color: var(--primary-indigo-hover);
}

/* Text Truncation */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Table Modernization (Light Pivot) */
.table {
    color: var(--text-primary) !important;
    border-color: var(--border-soft) !important;
}

.table thead th {
    background-color: #f1f5f9 !important;
    color: var(--text-secondary) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-soft) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > *,
.table-striped > tbody > tr.odd > * {
    background-color: #f8fafc !important;
    box-shadow: none !important;
}

.table-striped > tbody > tr:nth-of-type(even) > *,
.table-striped > tbody > tr.even > * {
    background-color: transparent !important;
}

.table-hover > tbody > tr:hover > * {
    background-color: #f1f5f9 !important;
    color: var(--text-primary) !important;
}

/* DataTables Specific Fixes */
.dataTables_wrapper {
    color: var(--text-primary) !important;
}

.dataTables_length select,
.dataTables_filter input {
    background-color: white !important;
    border: 1px solid var(--border-soft) !important;
    color: var(--text-primary) !important;
    border-radius: 0.5rem !important;
    padding: 0.3rem 0.6rem !important;
}

.page-link {
    background-color: white !important;
    border-color: var(--border-soft) !important;
    color: var(--text-secondary) !important;
}

.page-item.active .page-link {
    background-color: var(--primary-indigo) !important;
    border-color: var(--primary-indigo) !important;
    color: white !important;
}
 
/* Status Badge Utilities (Modern Light) */
.bg-purple-light { border-color: rgba(139, 92, 246, 0.2) !important; background-color: rgba(139, 92, 246, 0.1) !important; }
.text-purple { color: #6d28d9 !important; }
 
.bg-slate-light { border-color: rgba(100, 116, 139, 0.2) !important; background-color: rgba(100, 116, 139, 0.1) !important; }
.text-slate { color: #334155 !important; }
 
.bg-success-light { border-color: rgba(34, 197, 94, 0.2) !important; background-color: rgba(34, 197, 94, 0.1) !important; }
.text-success { color: #15803d !important; }
 
.bg-danger-light { border-color: rgba(239, 68, 68, 0.2) !important; background-color: rgba(239, 68, 68, 0.1) !important; }
.text-danger { color: #b91c1c !important; }
 
.bg-info-light { border-color: rgba(14, 165, 233, 0.2) !important; background-color: rgba(14, 165, 233, 0.1) !important; }
.text-info { color: #0369a1 !important; }
