:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --darker-color: #0f172a;
    --light-color: #f8fafc;
    --lighter-color: #ffffff;
    --border-color: #ced4da;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-color);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-wrapper {
    background: var(--lighter-color);
    min-height: 100vh;
    border-radius: 20px;
    margin: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.navbar {
    background: var(--primary-color);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    color: var(--lighter-color) !important;
    font-size: 1.75rem;
    text-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand i {
    color: var(--accent-color);
    font-size: 2rem;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    background: var(--lighter-color);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    /* transform: translateY(-4px); */
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: var(--primary-color);
    color: white;
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    font-weight: 600;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: var(--danger-color);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    background: var(--lighter-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--lighter-color);
    transform: translateY(-1px);
}

.form-select {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    background: var(--lighter-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--lighter-color);
    transform: translateY(-1px);
}

.table {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--lighter-color);
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
    position: relative;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: var(--light-color);
}

.alert {
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: var(--success-color);
    color: white;
}

.alert-danger {
    background: var(--danger-color);
    color: white;
}

.sidebar {
    background: var(--dark-color);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 76px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    width: 280px;
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--primary-color);
    color: white !important;
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--accent-color);
}

.sidebar .nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    transform: scale(1.1);
}

/* Mobile sidebar styles */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 76px);
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-backdrop.show {
        display: block;
    }
    
    .mobile-sidebar-toggle {
        display: block !important;
    }
    
    .flex-grow-1 {
        margin-left: 0 !important;
    }
}

.mobile-sidebar-toggle {
    display: none;
}

.stats-card {
    background: rgba(255,255,255,0.95);
    border: 2px solid var(--accent-color);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.stats-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
}

.login-container {
    min-height: 100vh;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-xl);
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    backdrop-filter: blur(15px);
}

.pagination .page-link {
    border-radius: 8px;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    margin: 0 2px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active { 
    color: white;
}

.pagination  .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    color: white;
}
/* Badge styling */
.badge {
    border-radius: 8px;
    font-weight: 600;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
    color: #212529 !important;
}

.badge.bg-danger {
    background: var(--danger-color) !important;
}

.badge.bg-info {
    background: var(--info-color) !important;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

/* Dropdown styling */
.dropdown-menu {
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}

/* Modal styling */
.modal-content {
    border-radius: 16px;
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 16px 16px 0 0;
}

#sidebarToggle {
    color: white;
    font-size: 1.5rem;
}


.login-container {
    min-height: 100vh;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}



.login-header {
    padding: 2rem 2rem 0;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.login-logo i {
    font-size: 2.5rem;
    color: white;
}

.login-form {
    padding: 0 2rem 2rem;
}

.form-label {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    background: var(--lighter-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--lighter-color);
}

.input-group .form-control {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .input-group-text {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-outline-secondary {
    border: 1px solid var(--border-color);
    border-left: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--light-color);
    color: var(--text-dark);
}

.alert {
    border: none;
    border-radius: 12px;
    margin: 0 2rem 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}
/* Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* Compact Layout Styles */
.navbar {
    padding: 0.5rem 1rem !important;
    min-height: 60px;
}

.navbar-brand {
    font-size: 1.25rem !important;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.5rem !important;
}

.sidebar {
    width: 240px !important;
    min-height: calc(100vh - 60px) !important;
}

.sidebar .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem;
    gap: 0.75rem;
}

.sidebar .nav-link i {
    font-size: 1rem !important;
    width: 20px;
}

.flex-grow-1 {
    padding: 1rem !important;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        width: 240px !important;
        top: 60px !important;
        height: calc(100vh - 60px) !important;
    }
    
    .navbar {
        padding: 0.5rem 1rem !important;
        min-height: 60px;
    }
    
    .flex-grow-1 {
        padding: 0.75rem !important;
    }
}

/* Reduce admin wrapper margins */
.admin-wrapper {
    margin: 10px !important;
    border-radius: 12px !important;
}

/* Compact card headers */
.card-header {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem;
}

/* Reduce content area padding */
.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
.select2-container--bootstrap-5 .select2-selection{
    border-radius: 12px;
}