/* ========== MODERN DARK CONTENT AREA (Glassmorphism) ========== */
/* THEME: March 7th (Honkai Star Rail) - Dark Pink Accent */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: rgba(20, 20, 20, 0.7);
    --bg-glass: rgba(30, 30, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-color: #ff1493; /* March 7th Hot Pink */
    --accent-light: #ff69b4; /* Lighter pink for gradients */
    --accent-dark: #e91e63; /* Darker pink for hover states */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* Main Content Wrapper */
.main-content {
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 90px 25px 40px 25px;
}

/* Page Title Section */
.page-title-box {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    animation: fadeInDown 0.5s ease-out;
}

.page-title-box h4 {
    color: var(--text-primary) !important;
    font-size: 22px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.breadcrumb-item a {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color) !important;
}

.breadcrumb-item.active {
    color: var(--accent-color) !important;
    font-weight: 500;
}

/* Cards - Glassmorphism */
.card {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s ease-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
}

.card-header {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 25px !important;
}

.card-title {
    color: var(--text-primary) !important;
    font-size: 18px !important;
    font-weight: 600;
    margin-bottom: 8px !important;
}

.card-title-desc {
    color: var(--text-secondary) !important;
    font-size: 14px;
}

.card-body {
    padding: 25px !important;
}

/* Buttons - Glossy March 7th Pink */
.btn {
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4); /* Pink shadow */
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6) !important; /* Pink shadow */
}

.btn-success {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 6px 14px !important;
    font-size: 13px !important;
}

/* Forms - Dark & Glossy */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    color: var(--text-primary) !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-color) !important; /* Pink focus */
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.2) !important; /* Pink glow */
}

select.form-select option,
.form-control option {
    background-color: #0f172a;
    color: #f8fafc;
}

.dropdown-menu {
    background-color: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
    color: #e2e8f0 !important;
    backdrop-filter: blur(12px);
}

.dropdown-item {
    color: #e2e8f0 !important;
    border-radius: 8px;
    margin: 2px 4px;
    padding: 0.5rem 0.85rem;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.4), rgba(59, 130, 246, 0.35)) !important;
    color: #fff !important;
}

.select2-container--bootstrap-5 .select2-selection--single,
.select2-container--bootstrap-5 .select2-selection--multiple {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    color: var(--text-primary) !important;
    min-height: 44px;
}

.select2-container--bootstrap-5 .select2-selection__rendered,
.select2-container--bootstrap-5 .select2-selection__placeholder,
.select2-container--bootstrap-5 .select2-selection__choice {
    color: var(--text-primary) !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    background-color: rgba(15, 23, 42, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
    color: #f8fafc !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    color: #e2e8f0 !important;
    padding: 10px 14px !important;
    border-radius: 8px;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted,
.select2-container--bootstrap-5 .select2-results__option--selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(59, 130, 246, 0.4)) !important;
    color: #fff !important;
}

.form-label {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    font-weight: 500;
    margin-bottom: 8px !important;
}

/* DataTables - Dark Theme */
.dataTables_wrapper {
    background: var(--bg-glass);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate {
    color: var(--text-secondary) !important;
}

.dataTables_filter input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    padding: 8px 12px !important;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

table.dataTable thead th {
    background: rgba(0, 0, 0, 0.3) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 15px 20px !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

table.dataTable tbody tr {
    background: var(--bg-secondary) !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
    transition: all 0.3s ease !important;
}

table.dataTable tbody tr:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(-5px);
}

table.dataTable tbody td {
    border: none !important;
    padding: 18px 20px !important;
    color: var(--text-primary) !important;
}

.dataTables_paginate .paginate_button {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: var(--text-secondary) !important;
    padding: 8px 14px !important;
    margin: 0 4px !important;
    transition: all 0.3s ease;
}

.dataTables_paginate .paginate_button:hover {
    background: var(--accent-color) !important; /* Pink hover */
    color: white !important;
    border-color: var(--accent-color) !important;
}

.dataTables_paginate .paginate_button.current {
    background: var(--accent-color) !important; /* Pink active */
    color: white !important;
    border-color: var(--accent-color) !important;
}

/* Modals - Glassmorphism */
.modal-content {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal-header {
    background: rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 25px !important;
}

.modal-title {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.modal-body {
    padding: 25px !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
    padding: 20px 25px !important;
}

/* Close Button */
.btn-close {
    filter: invert(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.05) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Password Input and Toggle Button */
.password-container {
    position: relative;
    width: 100%;
}

.password-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background-color: rgba(51, 51, 51, 0.6);
    border: none;
    border-radius: 10px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.password-input:focus {
    background-color: rgba(58, 58, 58, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.3); /* Pink focus */
    color: #fff;
    outline: none;
}

.toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #a0a0a0;
    cursor: pointer;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password-btn .fa {
    font-size: 1.2em;
}

.toggle-password-btn:hover .fa {
    color: var(--accent-light); /* Pink hover */
}

/* Optional: Add transitions for a smooth effect */
.password-container .password-input,
.password-container .toggle-password-btn {
    transition: all 0.3s ease;
}

body.dark-theme {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%) !important;
    color: #e0e0e0 !important;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.dark-theme .card {
    background: linear-gradient(135deg, #333333 0%, #1c1c1c 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.dark-theme .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.dark-theme .text-muted {
    color: #a0a0a0 !important;
}

.dark-theme .form-control {
    background-color: rgba(51, 51, 51, 0.6) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #e0e0e0 !important;
    transition: all 0.3s ease;
}

.dark-theme .form-control:focus {
    background-color: rgba(58, 58, 58, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.3) !important; /* Pink focus */
    color: #fff !important;
}

.dark-theme .btn-outline-secondary {
    color: #a0a0a0 !important;
    border-color: #444 !important;
    border-radius: 10px !important;
}

.dark-theme .btn-outline-secondary:hover {
    background-color: rgba(68, 68, 68, 0.8) !important;
    color: var(--accent-light) !important; /* Pink hover */
}

/* March 7th Pink Button */
.dark-theme .custom-pink-btn {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.dark-theme .custom-pink-btn:hover {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.dark-theme .form-check-input {
    background-color: rgba(51, 51, 51, 0.6) !important;
    border-color: #444 !important;
}

.dark-theme .form-check-input:checked {
    background-color: #ff1493 !important; /* Pink checked */
    border-color: #ff1493 !important;
}

.dark-theme a {
    color: #b0b0b0 !important;
    transition: all 0.3s ease;
}

.dark-theme a:hover {
    color: var(--accent-light) !important; /* Pink hover */
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dark-theme .card-body {
    animation: fadeIn 0.5s ease-out;
}

.dark-theme .form-control, .dark-theme .btn {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.dark-theme .form-control:nth-child(1) { animation-delay: 0.1s; }
.dark-theme .form-control:nth-child(2) { animation-delay: 0.2s; }
.dark-theme .btn { animation-delay: 0.3s; }

.dark-theme .alert {
    border-radius: 10px;
    animation: fadeIn 0.5s ease-out;
}

/* Preloader styles */
#preloader {
    background-color: #1c1c1c;
}

.loader .fa-cog {
    color: #a0a0a0;
}

.text span {
    color: #ff1493; /* Pink accent */
}

.ct-area {
    fill-opacity: .33 !important;
}
.ct-series-a .ct-area, .ct-series-a .ct-slice-pie {
    fill: #7a6fbe !important;
}
.ct-golden-section {
    overflow: hidden;
}
.ct-line {
    stroke-width: 3px !important;
}
.ct-point {
    stroke-width: 7px !important;
}
.blurred-text {
    filter: blur(5px);
}

.revealed-email {
    filter: none;
}
/* Calender */
.fc-event {
	border-radius: 2px !important;
	border: none !important;
	cursor: move !important;
	font-size: 0.8125rem !important;
	margin: 5px 7px !important;
}
.fc-day-grid-event .fc-time {
    font-weight: 500 !important;
}
.fc-event .fc-content {
	color: #fff !important;
}
tr:first-child>td>.fc-day-grid-event {
    margin-top: 2px !important;
}

/* Range Slider */
.irs--modern .irs-from:before, .irs--modern .irs-single:before, .irs--modern .irs-to:before {
    border-top-color: #626ed4 !important;
}
.irs--modern .irs-line {
    background: #dee2e6 !important;
    border-color: #dee2e6 !important;
}
.irs--modern .irs-max, .irs--modern .irs-min {
    color: #adb5bd !important;
    background: #f8f9fa !important;
    font-size: 11px !important;
}
.irs--modern .irs-handle>i:nth-child(1) {
    width: 8px !important;
    height: 8px !important;
}
.irs--modern .irs-bar, .irs--modern .irs-from, .irs--modern .irs-single, .irs--modern .irs-to {
    font-size: 11px !important;
}
.irs--modern .irs-grid-text {
    font-size: 11px !important;
    color: #ced4da !important;
}
.irs--modern .irs-handle {
    border: 1px solid #a3adc1;
    border-top-width: 0 !important;
}
.irs--square .irs-line {
    background: #f6f6f6 !important;
    border-color: #f6f6f6 !important;
}
.irs--square .irs-max, .irs--square .irs-min {
    color: #ced4da !important;
    background: #f6f6f6 !important;
    font-size: 11px !important;
}
.irs--square .irs-bar, .irs--square .irs-from, .irs--square .irs-single, .irs--square .irs-to {
    background: #ff1493 !important; /* Pink accent */
    font-size: 11px !important;
}
.irs--square .irs-handle {
    border: 2px solid #ff1493 !important; /* Pink border */
    width: 12px !important;
    height: 12px !important;
    top: 26px !important;
    background-color: #fff!important;
}
.irs--square .irs-grid-text {
    font-size: 11px;
    color: #ced4da !important;
}

/* Sweet Alert */
.swal2-styled:focus {
    box-shadow: none !important;
}

/* Form Advanced */
.select2-container .select2-selection--single {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    height: 38px !important;
}
.select2-container .select2-selection--single:focus {
	outline: none !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 12px !important;
    color: #495057 !important;
}
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
    width: 34px !important;
    right: 3px !important;
}
.select2-container .select2-selection--single .select2-selection__arrow b {
	border-color: #adb5bd transparent transparent transparent !important;
	border-width: 6px 6px 0 6px !important;
}
.select2-container--open .select2-selection--single .select2-selection__arrow b {
	border-color: transparent transparent #adb5bd transparent !important;
	border-width: 0 6px 6px 6px !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
	background-color: #f8f9fa !important;
	color: #16181b !important;
}
.select2-container--default .select2-results__option[aria-selected=true]:hover {
	background-color: #ff1493 !important; /* Pink hover */
	color: #fff !important;
}
.select2-results__option {
	padding: 6px 12px !important;
}
.select2-dropdown {
	border-color:rgba(0,0,0,.15) !important;
}
.select2-container .select2-selection--multiple {
	min-height: 38px !important;
	background-color: #fff !important;
	border: 1px solid #ced4da !important;
}
.select2-container .select2-selection--multiple .select2-selection__rendered {
	padding: 2px 10px !important;
}
.select2-container .select2-selection--multiple .select2-search__field {
	border: 0;
	color: #495057 !important;
}
.select2-container .select2-selection--multiple .select2-search__field::-webkit-input-placeholder {
	color: #495057 !important;
}
.select2-container .select2-selection--multiple .select2-search__field::-moz-placeholder {
	color: #495057 !important;
}
.select2-container .select2-selection--multiple .select2-search__field:-ms-input-placeholder {
	color: #495057 !important;
}
.select2-container .select2-selection--multiple .select2-search__field::-ms-input-placeholder {
	color: #495057 !important;
}
.select2-container .select2-selection--multiple .select2-search__field::placeholder {
	color: #495057 !important;
}
.select2-container .select2-selection--multiple .select2-selection__choice {
	background-color: #e9ecef !important;
	border: 1px solid #dee2e6 !important;
	border-radius: 1px !important;
	padding: 0 7px !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da !important;
    background-color: #fff !important;
    color: #74788d !important;
    outline: 0 !important;
}

/* color */
.sp-hidden {
	display: none !important;
}

/* Form File Upload */
.dropzone {
	min-height: 230px !important;
    border-style: dashed !important;
	background: transparent !important;
}

/* Chart Chartlist */
.ct-grid {
    stroke: rgba(52,58,64,.09) !important;
    stroke-width: 1px;
    stroke-dasharray: 3px !important;
}
.ct-series-c .ct-area, .ct-series-c .ct-slice-pie {
    fill: #343a40 !important;
}
.ct-series-b .ct-area, .ct-series-b .ct-slice-pie {
    fill: #f8b425 !important;
}

/* C3 Chart */
.c3 path.domain, .c3-axis.c3-axis-x line, .c3-axis.c3-axis-y line {
    stroke: #ced4da !important;
}
.c3-areas-Pageview .c3-area {
    opacity: .2 !important;
}
.c3-legend-item {
    font-size: 14px !important;
}
.c3-chart-arcs-title {
    font-size: 18px !important;
}

/* March 7th Pink Button (renamed from custom-red-btn) */
.custom-pink-btn {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    border: none;
}

.custom-pink-btn:hover {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1c1c1c;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lottie-animation {
    width: 200px;
    height: 200px;
}

/* ========== CLEAN NAVBAR (NO PURPLE) ========== */

#page-topbar {
    background: #1a1a1a !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #2a2a2a;
}

.navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 25px;
}

/* LEFT SECTION */
.left-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: #e0e0e0;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.menu-toggle i {
    font-size: 26px;
}

.logo-wrap {
    background: transparent !important;
    padding: 0;
}

.logo-img {
    height: 32px;
    filter: brightness(0) invert(1); /* White logo */
}

/* RIGHT SECTION */
.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-msg {
    color: #b0b0b0;
    font-size: 14px;
}

.welcome-msg span {
    color: #ffffff;
    font-weight: 500;
}

.fullscreen-btn {
    background: transparent;
    border: none;
    color: #e0e0e0;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ========== WORKING DROPDOWN ========== */

.user-dropdown {
    position: relative;
}

.user-avatar {
    height: 36px;
    width: 36px;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: var(--accent-color); /* Pink accent */
}

.dropdown-menu {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-item {
    color: #e0e0e0 !important;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 20, 147, 0.1) !important; /* Pink hover */
    color: var(--accent-light) !important;
}

.dropdown-item i {
    margin-right: 8px;
}

.dropdown-divider {
    border-color: #333;
}

/* ========== MODERN DARK SIDEBAR (Glassmorphism) ========== */

.vertical-menu {
    background: rgba(26, 26, 26, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* Dark scrollbar */
.simplebar-scrollbar::before {
    background: rgba(255, 255, 255, 0.2) !important;
}

.simplebar-track.simplebar-vertical {
    width: 6px;
}

/* Menu Container */
#sidebar-menu {
    padding: 20px 15px !important;
}

/* Menu Title */
.menu-title {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 20px 15px 8px 15px !important;
    margin-top: 10px;
}

/* Menu Items */
#side-menu li a {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 14px 18px !important;
    margin: 4px 0 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative;
    overflow: hidden;
    background: transparent !important;
}

/* Icon Styling */
#side-menu li a i {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
}

/* Hover Effect - Glassy */
#side-menu li a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#side-menu li a:hover i {
    color: var(--accent-color) !important; /* Pink accent */
    transform: scale(1.15);
}

/* Active State - Glossy March 7th Pink */
#side-menu li.mm-active > a {
    background: linear-gradient(135deg, 
        rgba(255, 20, 147, 0.25) 0%, 
        rgba(255, 20, 147, 0.15) 100%) !important; /* Pink gradient */
    color: #ffffff !important;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.3) !important; /* Pink shadow */
    border-left: 3px solid var(--accent-color); /* Pink border */
}

#side-menu li.mm-active > a i {
    color: var(--accent-color) !important; /* Pink icon */
}

/* Submenu */
#side-menu .sub-menu {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 0 0 12px 12px !important;
    margin: 0 8px !important;
}

#side-menu .sub-menu a {
    padding: 12px 20px 12px 40px !important;
    font-size: 13px !important;
}

/* Submenu show animation */
.mm-collapse.mm-show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ripple Effect on Click */
#side-menu li a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#side-menu li a:active::after {
    width: 300px;
    height: 300px;
}

#side-menu a {
    position: relative !important;
    overflow: hidden !important;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.vertical-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 20, 147, 0.1), transparent); /* Pink gradient */
    z-index: 1;
}

/* ========== UNIFIED MOBILE SIDEBAR (WORKS WITH .mobile-active) ========== */
@media (max-width: 992px) {
    .vertical-menu {
        display: none;
        position: fixed;
        top: 70px;
        right: 0;
        bottom: 0;
        width: 280px;
        z-index: 9999;
        background: #1a1a1a;
        border-left: 1px solid #333;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }
    
    .vertical-menu.mobile-active {
        display: block !important;
        transform: translateX(0) !important;
    }
    
    /* Backdrop */
    .menu-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9998;
        backdrop-filter: blur(4px);
    }
    
    .menu-backdrop.show {
        display: block !important;
    }
}
/* ========== MODERN FOOTER (March 7th Theme) - FINAL OVERRIDE ========== */

/* 1. Reset everything in the footer */
.footer, .footer * {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* 2. Set the base footer color (this kills the blue) */
.footer {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color) !important;
    position: relative !important;
    padding: 40px 0 30px !important;
    margin-top: 60px !important;
    height: auto !important;
    right: 0 !important;
    color: var(--text-secondary) !important; /* This is your gray color */
}

/* 3. Force all child elements to inherit the footer's gray color */
.footer * {
    color: inherit !important;
}

/* 4. Now apply specific colors to individual elements */
.footer .footer-year {
    color: var(--accent-color) !important; /* Pink for year */
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.footer .footer-brand {
    color: var(--text-primary) !important; /* White for brand */
    font-weight: 600;
    font-size: 15px;
    transition: all 0.4s ease;
}

.footer .footer-brand:hover {
    color: var(--accent-light) !important; /* Lighter pink on hover */
    transform: translateY(-2px);
}

.footer .footer-divider {
    color: rgba(255, 255, 255, 0.1) !important; /* Subtle divider */
    margin: 0 15px;
}

/* 5. Add the glossy pink top border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

/* Responsive */
@media (max-width: 992px) {
    .footer {
        padding: 30px 0 20px !important;
        margin-top: 40px !important;
    }
}

@media (max-width: 576px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    .footer-divider {
        display: none;
    }
}
/* ========== DATATABLES PAGINATION (March 7th Theme) ========== */

/* Pagination container */
.dataTables_paginate .pagination {
    justify-content: center;
    margin: 20px 0 0 0;
    gap: 4px;
}

/* Individual page item (the <li>) */
.dataTables_paginate .paginate_button.page-item {
    margin: 0;
}

/* The actual button (the <a> with .page-link) */
.dataTables_paginate .paginate_button.page-item .page-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: var(--text-secondary) !important;
    padding: 8px 14px !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 36px;
    text-align: center;
    line-height: 1.5;
}

/* Hover state for non-disabled, non-active buttons */
.dataTables_paginate .paginate_button.page-item:not(.disabled):not(.active):hover .page-link {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    transform: translateX(-3px);
}

/* Active/current page */
.dataTables_paginate .paginate_button.page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

/* Disabled state (Previous/Next when unavailable) */
.dataTables_paginate .paginate_button.page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.2) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Previous/Next buttons - larger padding */
.dataTables_paginate .paginate_button.page-item.previous .page-link,
.dataTables_paginate .paginate_button.page-item.next .page-link {
    padding: 8px 18px !important;
    font-weight: 600;
}

/* First/Last buttons (if enabled) */
.dataTables_paginate .paginate_button.page-item.first .page-link,
.dataTables_paginate .paginate_button.page-item.last .page-link {
    padding: 8px 16px !important;
}

/* Ellipsis (...) */
.dataTables_paginate .paginate_button.page-item.disabled .page-link.ellipsis {
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Click animation */
.dataTables_paginate .paginate_button.page-item .page-link:active {
    transform: scale(0.95) !important;
}

/* Remove any default Bootstrap pagination focus rings */
.dataTables_paginate .paginate_button.page-item .page-link:focus {
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.2) !important;
    border-color: var(--accent-color) !important;
}
/* =================================================================== */
/* Dark Mode Form & Select2 Fixes                                      */
/* =================================================================== */

/* Fix for white-on-white <select> dropdowns in dark mode */
.form-select {
    color: #ced4da; /* A light gray for text */
    background-color: #2a3042; /* A dark background (adjust to match your theme) */
    border-color: #495057;
}

.form-select:focus {
    color: #ced4da;
    background-color: #2a3042;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-control {
    color: #ced4da;
    background-color: #2a3042;
    border-color: #495057;
}

.form-control:focus {
    color: #ced4da;
    background-color: #2a3042;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-control:disabled, .form-control[readonly] {
    background-color: #363b5b;
    opacity: 0.7;
}

/* Fix for Select2 styling in dark mode */
.select2-container--bootstrap-5 .select2-selection {
    color: #ced4da;
    background-color: #2a3042 !important; /* Match form-control */
    border-color: #495057;
}
.select2-container--bootstrap-5 .select2-selection .select2-selection__rendered {
    color: #ced4da;
}
.select2-container--bootstrap-5 .select2-selection .select2-selection__placeholder {
    color: #9a9cab; /* Lighter placeholder text */
}

/* Focused search box */
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* The dropdown panel */
.select2-dropdown {
    color: #ced4da;
    background-color: #2a3042;
    border-color: #495057;
}

/* The search bar inside the dropdown */
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    color: #ced4da;
    background-color: #363b5b;
    border-color: #495057;
}

/* Fix for modal z-index issue with Select2 */
.select2-container {
    z-index: 1056; /* Higher than Bootstrap's modal z-index (1055) */
}