/* ===== MODERN LEGAL MANAGEMENT SYSTEM - BRIGHT LIGHT THEME ===== */
:root {
    /* Bright Color Palette */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-lighter: #60a5fa;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --secondary-light: #8b5cf6;
    --secondary-lighter: #a78bfa;
    --accent: #ec4899;
    --accent-light: #f472b6;
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --danger: #ef4444;
    --danger-light: #f87171;
    --info: #06b6d4;
    --info-light: #22d3ee;
    
    /* Bright Neutral Colors - Mostly White and Light Gray */
    --white: #ffffff;
    --light-50: #fafafa;
    --light-100: #f4f4f5;
    --light-200: #e4e4e7;
    --light-300: #d4d4d8;
    --light-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    
    /* Modern Shadows with Light Tint */
    --shadow-sm: 0 1px 2px 0 rgba(37, 99, 235, 0.05);
    --shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.1), 0 1px 2px 0 rgba(37, 99, 235, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 0 4px 6px -2px rgba(37, 99, 235, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(37, 99, 235, 0.04);
    
    /* Modern Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Modern Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Modern Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--gray-800);
    line-height: 1.7;
    font-size: 15px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 0.75em;
}

h1 { 
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}
h2 { 
    font-size: 2.25rem;
    letter-spacing: -0.01em;
}
h3 { 
    font-size: 1.875rem;
}
h4 { 
    font-size: 1.5rem;
}
h5 { 
    font-size: 1.25rem;
}
h6 { 
    font-size: 1.125rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--gray-700);
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-50) 100%);
    color: var(--gray-900);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--light-200);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 72px;
}

.logo {
    font-size: 1.875rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-900);
}

.logo::before {
    content: '⚖️';
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

nav ul li a {
    color: var(--gray-700);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 0.9375rem;
}

nav ul li a:hover {
    color: var(--primary);
    background: var(--light-100);
    transform: translateY(-1px);
}

nav ul li a.active {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-700);
}

.user-role {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

/* ===== MAIN CONTENT LAYOUT ===== */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem;
    position: sticky;
    top: 6rem;
    border: 1px solid var(--light-200);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.sidebar h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-200);
    font-weight: 600;
}

.sidebar ul {
    list-style: none;
    margin-bottom: 2rem;
}

.sidebar ul:last-child {
    margin-bottom: 0;
}

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar ul li a:hover {
    background: var(--light-100);
    color: var(--primary);
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.sidebar ul li a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.sidebar ul li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: white;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

/* ===== CONTENT AREA ===== */
.content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    border: 1px solid var(--light-200);
    min-height: calc(100vh - 12rem);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid var(--light-100);
}

.content-header h2 {
    margin: 0;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-100) 100%);
    color: var(--gray-800);
    border: 2px solid var(--light-300);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn:hover {
    background: var(--white);
    border-color: var(--primary-lighter);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-light) 0%, var(--success) 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-light) 0%, var(--danger) 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-light) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow);
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--warning-light) 0%, var(--warning) 100%);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: white;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
    gap: 0.75rem;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius);
}

/* ===== CARD STYLES ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--light-200);
    transition: var(--transition);
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--light-300);
}

.card-header {
    padding: 1.75rem;
    border-bottom: 1px solid var(--light-200);
    background: linear-gradient(135deg, var(--light-50) 0%, var(--white) 100%);
}

.card-body {
    padding: 1.75rem;
}

.card-footer {
    padding: 1.75rem;
    border-top: 1px solid var(--light-200);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-50) 100%);
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-50) 100%);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--light-200);
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--light-300);
}

.stat-card .number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stat-card p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.6;
}

/* ===== TABLE STYLES ===== */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--light-200);
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

table th {
    background: linear-gradient(135deg, var(--light-50) 0%, var(--light-100) 100%);
    padding: 1.25rem 1.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--light-200);
    position: sticky;
    top: 0;
    z-index: 10;
}

table td {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--light-200);
    color: var(--gray-800);
    font-weight: 500;
    transition: var(--transition-fast);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    transform: scale(1.002);
}

/* ===== STATUS BADGES ===== */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status.in_progress {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status.closed {
    background: rgba(113, 113, 122, 0.15);
    color: var(--gray-500);
    border: 1px solid rgba(113, 113, 122, 0.3);
}

.status.draft {
    background: rgba(167, 139, 250, 0.15);
    color: var(--secondary-lighter);
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.status.submitted {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning-light);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status.approved {
    background: rgba(52, 211, 153, 0.15);
    color: var(--success-light);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.status.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--light-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    transition: var(--transition);
    background: var(--white);
    font-family: var(--font-sans);
    color: var(--gray-800);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--white);
}

.form-control::placeholder {
    color: var(--light-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 3rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 2px solid transparent;
    font-weight: 500;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-success::before {
    background: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-danger::before {
    background: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.2);
}

.alert-warning::before {
    background: var(--warning);
}

.alert-info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.2);
}

.alert-info::before {
    background: var(--primary);
}

/* ===== LOGIN PAGE STYLES ===== */
.login-page {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

.login-links {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-200);
    text-align: center;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: linear-gradient(135deg, var(--light-50) 0%, var(--white) 100%);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    border: 1px solid var(--light-200);
    backdrop-filter: blur(10px);
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--gray-500);
    background: linear-gradient(135deg, var(--light-50) 0%, var(--white) 100%);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--light-300);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state h4 {
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--gray-500);
    max-width: 400px;
    margin: 0 auto 2rem;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-50) 100%);
    color: var(--gray-700);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--light-200);
}

footer p {
    margin: 0.5rem 0;
    color: var(--gray-600);
}

/* ===== MODERN UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.5rem; }
.p-6 { padding: 2rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.5rem; }

.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.bg-white { background: var(--white); }
.bg-light-50 { background: var(--light-50); }
.bg-light-100 { background: var(--light-100); }
.bg-light-200 { background: var(--light-200); }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }

.border-light-200 { border-color: var(--light-200); }
.border-light-300 { border-color: var(--light-300); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 260px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .content {
        padding: 2rem;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        position: static;
        order: 2;
        width: 100%;
    }
    
    .content {
        order: 1;
        min-height: auto;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        height: auto;
        padding: 1rem 0;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    nav ul li a {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .main-content {
        padding: 1.25rem;
    }
    
    .content {
        padding: 1.75rem;
    }
    
    .stat-card {
        padding: 2rem;
    }
    
    .stat-card .number {
        font-size: 2.5rem;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    table th,
    table td {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .sidebar {
        padding: 1.5rem;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stat-card {
        padding: 1.75rem;
    }
    
    .stat-card .number {
        font-size: 2.25rem;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.shimmer {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-100);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    border: 2px solid var(--light-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-light) 100%);
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar,
    .header-actions,
    .btn,
    .filter-section,
    .alert {
        display: none !important;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    .content {
        box-shadow: none;
        border: none;
        padding: 0;
        min-height: auto;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .stat-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%);
    animation: shimmer 1.5s infinite;
    pointer-events: none;
}

/* ===== TOOLTIPS ===== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: var(--gray-800);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1000;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--gray-800);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1000;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===== GLASS MORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== GRADIENTS ===== */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.gradient-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--info) 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--accent) 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--warning) 100%);
}

/* ===== CUSTOM CHECKBOX AND RADIO ===== */
.custom-checkbox,
.custom-radio {
    position: relative;
    cursor: pointer;
    padding-left: 2rem;
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.custom-checkbox input,
.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark,
.custom-radio .checkmark {
    position: absolute;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--light-400);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.custom-radio .checkmark {
    border-radius: 50%;
}

.custom-checkbox:hover .checkmark,
.custom-radio:hover .checkmark {
    border-color: var(--primary);
}

.custom-checkbox input:checked ~ .checkmark,
.custom-radio input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.custom-checkbox .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: var(--transition-fast);
}

.custom-radio .checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: var(--transition-fast);
}

.custom-checkbox input:checked ~ .checkmark::after,
.custom-radio input:checked ~ .checkmark::after {
    opacity: 1;
}

/* ===== MODAL BACKDROP ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--gray-600);
    transition: var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--gray-400);
}