:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #0f172a;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

.sidebar {
    width: 220px;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, #0f172a 100%);
    border-right: 1px solid rgba(99, 102, 241, 0.2);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    background: #6366f1;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
}

.mobile-toggle i {
    font-size: 1.2rem;
    line-height: 1;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

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

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
}

.sidebar-logo i {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    font-size: 1rem;
}

.sidebar-nav {
    padding: 0.75rem 0;
}

.nav-section {
    margin-bottom: 0;
}

.nav-section-title {
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0.75rem 0.5rem;
    margin-bottom: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.875rem;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: white;
    border-left: 3px solid var(--primary);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: white;
    border-left: 3px solid var(--primary);
}

.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.main-content {
    margin-left: 220px;
    flex: 1;
    min-height: 100vh;
    padding: 12px;
    width: calc(100% - 220px);
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 8px 8px 0 0;
}

.card-body {
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 12px;
    
}

.btn {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}



.table-container {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: none;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.table {
    color: #e2e8f0;
}

.table thead {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
}

.table tbody tr {
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}



.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.stats-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: white;
    min-height: 120px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stats-card small {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stats-icon.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.stats-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stats-icon.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.error-cell {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

.valid-row {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #86efac !important;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.page-header {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: none;
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: white;
}

.page-header h2 {
    color: white;
    font-size: 1.5rem;
}

.page-header .text-muted {
    color: #94a3b8 !important;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: white;
}

.filter-group {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.alert {
    background: rgba(30, 41, 59, 0.9);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.modal-content {
    background: var(--sidebar-bg);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.form-label {
    color: #e2e8f0;
    font-weight: 500;
}

.form-control, .form-select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: white;
}

.form-control:focus, .form-select:focus {
    background: rgba(15, 23, 42, 0.8);
    color: white;
}

.form-check-label {
    color: #e2e8f0;
    font-weight: 400;
}

small, .text-muted {
    color: #cbd5e1 !important;
}

.text-danger {
    color: #fca5a5 !important;
}

.text-success {
    color: #86efac !important;
}

.text-warning {
    color: #fcd34d !important;
}

.text-primary {
    color: #a5b4fc !important;
}

code {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
