:root {
    --maroon: #A12C23;
    --maroon-light: #FDF2F1;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-maroon {
    background-color: var(--maroon);
}

.text-maroon {
    color: var(--maroon);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #F3F3F3;
    color: #1e293b;
    margin: 0;
}

.dashboard-icon {
    color: #EE9948 !important;
    background-color: #FEF5ED !important;
}

.filter-color {
    background-color: #EE9948 !important;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Custom Scrollbar for Sidebar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--maroon);
    opacity: 0.5;
}

/* Sidebar Styling */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #64748b;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.sidebar-link:hover {
    background-color: #f1f5f9;
    color: var(--maroon);
}

.sidebar-link.active {
    background-color: var(--maroon);
    color: white;
    box-shadow: 0 4px 12px rgba(161, 44, 35, 0.15);
}

.sidebar-link.active i {
    color: white;
}

.sidebar-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
    text-align: center;
}

/* Cards */
.admin-card {
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
}

.admin-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Buttons */
.btn-primary {
    background-color: var(--maroon);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Inputs & Selects */
.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: var(--transition);
    background-color: #fff;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-input:focus {
    outline: none;
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(161, 44, 35, 0.1);
}

/* Table */
.admin-table-container {
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    overflow: hidden;
}

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

.admin-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #eef2f6;
}

.admin-table td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

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

/* Custom Select2 Styling - Perfect Match with .form-input */
.select2-container--default .select2-selection--single {
    width: 100% !important;
    height: 42px !important;
    padding: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 1rem !important;
    padding-right: 2.5rem !important;
    color: #1e293b !important;
    font-size: 0.875rem !important;
    line-height: 40px !important;
    width: 100% !important;
    display: block !important;
}

/* Hide the default clear button as it messes up alignment */
.select2-container--default .select2-selection--single .select2-selection__clear {
    display: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 12px !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    width: 20px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94a3b8 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin-left: 0 !important;
    position: static !important;
}

/* Focus State matching .form-input:focus */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--maroon) !important;
    box-shadow: 0 0 0 3px rgba(161, 44, 35, 0.1) !important;
    outline: none !important;
}

/* Dropdown styling */
.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
    margin-top: 4px !important;
    overflow: hidden !important;
}

.select2-container--default .select2-search--dropdown {
    padding: 12px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #f1f5f9 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    background-color: #f8fafc !important;
    font-size: 0.8125rem !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-color: var(--maroon) !important;
    background-color: white !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 16px !important;
    font-size: 0.875rem !important;
    color: #475569 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--maroon-light) !important;
    color: var(--maroon) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f8fafc !important;
    color: var(--maroon) !important;
    font-weight: 600 !important;
}