/* Futuristic Dark Theme Styles */
:root {
  --primary-dark: #0d1b2a;
  --primary: #1b263b;
  --primary-light: #415a77;
  --accent: #0099ff;
  --accent-hover: #00ccff;
  --text-primary: #e0e1dd;
  --text-secondary: #adb5bd;
  --danger: #e63946;
  --success: #2a9d8f;
  --warning: #e9c46a;
  --sidebar-width: 280px;
}

body {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--text-primary);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  min-height: 100vh;
}

/* Glowing effects */
.glow {
  box-shadow: 0 0 15px rgba(0, 153, 255, 0.5);
}

.glow-text {
  text-shadow: 0 0 10px rgba(0, 153, 255, 0.7);
}

/* Headers and titles with improved typography */
h1, h2, h3, h4, h5, h6, .page-title, .sidebar-brand h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Better readability for body text */
body, p, .form-label, .alert, table, input, select, textarea {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Buttons with medium weight */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Sidebar navigation */
.sidebar nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

/* Table headers */
th {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* Form inputs for better consistency */
input, select, textarea {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

/* Optimize font rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Brand link styling */
.brand-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.brand-link:hover {
  text-decoration: none;
  color: inherit;
}

.brand-link .glow-text {
  transition: text-shadow 0.3s ease;
}

.brand-link:hover .glow-text {
  text-shadow: 
    0 0 5px #667eea,
    0 0 10px #667eea,
    0 0 15px #667eea,
    0 0 20px #667eea;
}

/* Cards and containers */
.futuristic-card {
  background: rgba(27, 38, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(65, 90, 119, 0.3);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.futuristic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.futuristic-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.futuristic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 153, 255, 0.3);
}

.futuristic-card:hover::before {
  height: 6px;
  opacity: 1;
  box-shadow: 0 0 15px rgba(0, 153, 255, 0.5);
}

.card-header {
  background: rgba(13, 27, 42, 0.7);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(65, 90, 119, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.card-header:hover {
  background: rgba(13, 27, 42, 0.9);
}

.card-header.cursor-pointer {
  cursor: pointer;
  user-select: none;
}

.rotate-180 {
  transform: rotate(180deg);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-body {
  padding: 20px;
}

.card-footer {
  background: rgba(13, 27, 42, 0.5);
  padding: 16px 20px;
  border-top: 1px solid rgba(65, 90, 119, 0.3);
}

/* Card variations */
.card-accent {
  border-left: 4px solid var(--accent);
}

.card-success {
  border-left: 4px solid var(--success);
}

.card-warning {
  border-left: 4px solid var(--warning);
}

.card-danger {
  border-left: 4px solid var(--danger);
}

.card-glowing {
  box-shadow: 0 0 15px rgba(0, 153, 255, 0.4), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-floating {
  animation: floating 3s infinite ease-in-out;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Login page */
.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 153, 255, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.login-card {
  width: 400px;
  padding: 30px;
  z-index: 1;
  position: relative;
}

.login-form input {
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid rgba(65, 90, 119, 0.5);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.25);
  outline: none;
}

.login-btn {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0) 50%);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
    top: -100%;
  }
  100% {
    left: 100%;
    top: 100%;
  }
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 153, 255, 0.4);
}

/* Dashboard layout */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(13, 27, 42, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Contain scrollable children */
}

.sidebar-brand {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(65, 90, 119, 0.2);
}

.sidebar-brand h1 {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar-nav {
  padding: 24px 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--primary-dark);
  max-height: calc(100vh - 160px); /* Account for header and footer heights */
  display: flex;
  flex-direction: column;
}

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

.sidebar-nav::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
  border-radius: 10px;
  border: 2px solid var(--primary-dark);
}

.nav-item {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  margin-bottom: 4px;
  text-decoration: none;
  gap: 12px; /* Space between icon and text */
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(65, 90, 119, 0.2);
  color: var(--text-primary);
  border-left-color: var(--accent);
}

.nav-item.active {
  background: rgba(65, 90, 119, 0.3);
  color: var(--accent);
  border-left-color: var(--accent);
}

.nav-item svg {
  margin-right: 12px;
  width: 20px;
  height: 20px;
}

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

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(65, 90, 119, 0.2);
  display: flex;
  align-items: center;
}

.sidebar-footer img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 12px;
}

.sidebar-footer .user-info {
  flex: 1;
}

.sidebar-footer .user-name {
  font-size: 14px;
  font-weight: 600;
}

.sidebar-footer .user-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.sidebar-footer .btn-secondary,
.sidebar-footer .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sidebar-footer .btn-secondary i,
.sidebar-footer .btn-primary i {
  font-size: 14px;
}

/* Main content */
.main-content {
  flex: 1;
  padding: 24px;
  margin-left: var(--sidebar-width);
  transition: all 0.3s ease;
}

/* Ensure desktop main content has proper margin */
@media (min-width: 769px) {
  .main-content {
    margin-left: var(--sidebar-width) !important;
    padding-top: 24px !important;
  }
}

.page-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}



/* Empty state */
.empty-state {
  padding: 40px 20px;
  text-align: center;
  background: rgba(27, 38, 59, 0.4);
  border-radius: 8px;
  margin: 20px 0;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: rgba(65, 90, 119, 0.6);
}

.empty-state-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state-description {
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 153, 255, 0.3);
  font-size: 0.875rem;
}

.btn-primary.h-10 {
  height: 2.5rem;
  padding: 0 1.5rem;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  transition: all 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 153, 255, 0.4), 0 0 10px rgba(0, 153, 255, 0.6);
}

.btn-primary:hover::before {
  left: 100%;
  transition: all 0.8s ease;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 0 12px rgba(0, 153, 255, 0.6);
}

.btn-secondary {
  background: rgba(65, 90, 119, 0.2);
  color: var(--text-primary);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(65, 90, 119, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: inset 0 0 5px rgba(0, 153, 255, 0.1);
  position: relative;
  overflow: hidden;
  font-size: 0.875rem;
}

.btn-secondary.h-10 {
  height: 2.5rem;
  padding: 0 1.5rem;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(0, 153, 255, 0.8);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(65, 90, 119, 0.3);
  border-color: rgba(0, 153, 255, 0.4);
  box-shadow: 0 0 8px rgba(0, 153, 255, 0.2), inset 0 0 5px rgba(0, 153, 255, 0.2);
}

.btn-secondary:active::after {
  opacity: 0.4;
  transform: scale(20, 20) translate(-50%, -50%);
  transition: all 0.4s ease;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 3px rgba(0, 153, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(0, 153, 255, 0.1);
  box-shadow: 0 0 8px rgba(0, 153, 255, 0.3);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1.1rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-danger {
  background: linear-gradient(90deg, #e63946 0%, #d00000 100%);
  color: white;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.3);
}

.btn-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  transition: all 0.5s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(230, 57, 70, 0.4), 0 0 10px rgba(230, 57, 70, 0.6);
}

.btn-danger:hover::before {
  left: 100%;
  transition: all 0.8s ease;
}

.btn-success {
  background: linear-gradient(90deg, var(--success) 0%, #1a7a6d 100%);
  color: white;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(42, 157, 143, 0.3);
}

.btn-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  transition: all 0.5s ease;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(42, 157, 143, 0.4), 0 0 10px rgba(42, 157, 143, 0.6);
}

.btn-success:hover::before {
  left: 100%;
  transition: all 0.8s ease;
}

.btn-accent {
  background: linear-gradient(90deg, #00b4d8 0%, #0077b6 100%);
  color: white;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.3);
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  transition: all 0.5s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 180, 216, 0.4), 0 0 10px rgba(0, 180, 216, 0.6);
}

.btn-accent:hover::before {
  left: 100%;
  transition: all 0.8s ease;
}

.btn-purple {
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
  font-size: 0.875rem;
}

.btn-purple::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  transition: all 0.5s ease;
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4), 0 0 10px rgba(139, 92, 246, 0.6);
}

.btn-purple:hover::before {
  left: 100%;
  transition: all 0.8s ease;
}

.btn-purple:active {
  transform: translateY(1px);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid rgba(65, 90, 119, 0.3);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
}

textarea.form-control {
  white-space: pre-wrap;
  resize: vertical;
  line-height: 1.5;
}

.form-control.h-10 {
  height: 2.5rem;
  padding: 0 1rem;
}

.form-control:hover {
  border-color: rgba(65, 90, 119, 0.5);
  background: rgba(13, 27, 42, 0.9);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.25), 0 0 15px rgba(0, 153, 255, 0.15);
  outline: none;
}

.form-floating {
  position: relative;
}

.form-floating .form-control {
  height: 58px;
  padding: 20px 16px 8px 16px;
}

.form-floating .form-label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  opacity: 0.7;
}

.form-floating .form-control:focus ~ .form-label,
.form-floating .form-control:not(:placeholder-shown) ~ .form-label {
  top: 30%;
  font-size: 0.75rem;
  opacity: 1;
  color: var(--accent);
}

.form-control::placeholder {
  color: rgba(224, 225, 221, 0.4);
}

/* Custom Select */
.custom-select {
  position: relative;
  display: block;
  width: 100%;
}

.custom-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid rgba(65, 90, 119, 0.5);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-select::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--accent);
  pointer-events: none;
  font-size: 0.8rem;
}

.custom-select select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.25), 0 0 15px rgba(0, 153, 255, 0.15);
  outline: none;
}

/* Custom Checkbox */
.custom-checkbox {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  color: var(--text-primary);
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid rgba(65, 90, 119, 0.5);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
  background: rgba(65, 90, 119, 0.2);
}

.custom-checkbox input:checked ~ .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Form validation */
.form-control.is-invalid,
.form-control.input-validation-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25);
}

.form-control.input-validation-error:focus {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.35);
}

.invalid-feedback {
  color: var(--danger);
}

.text-red-400 {
  color: #f87171;
}

.field-validation-error {
  color: #f87171 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

span.field-validation-error {
  color: #f87171 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.field-validation-valid {
  display: none;
}

/* ASP.NET Validation */
span[data-valmsg-for] {
  color: #f87171 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.text-red-400 {
  color: #f87171 !important;
}

.validation-summary-errors {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 20px;
}

.validation-summary-valid {
  display: none;
}

/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: 1rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li:before {
  padding: 0 0.5rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .text-text-primary {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb .text-text-secondary {
  color: var(--text-secondary);
  padding: 0 0.5rem;
}

/* Form Groups Row */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

/* Alerts and notifications */
.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  background: rgba(27, 38, 59, 0.6);
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  backdrop-filter: blur(5px);
}

.alert-success {
  border-left-color: var(--success);
}

.alert-danger {
  border-left-color: var(--danger);
}

.alert-warning {
  border-left-color: var(--warning);
}

.alert-icon {
  margin-right: 12px;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 4px;
}

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* Filter Card */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-actions {
  display: flex;
  gap: 24px; /* Increased spacing between buttons */
}

.filter-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

.filter-card.collapsed {
  max-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
}

.card-header {
  background: rgba(13, 27, 42, 0.7);
}

.filter-badge {
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

/* Search form */
.search-form {
  width: 100%;
}

.form-control {
  background: rgba(13, 27, 42, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(65, 90, 119, 0.5);
  transition: all 0.3s ease;
  height: 42px;
  width: 100%;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.25);
  outline: none;
}

/* Pagination */
.pagination-container {
  background: rgba(27, 38, 59, 0.7);
  border-top: 1px solid rgba(65, 90, 119, 0.3);
  padding: 12px 16px;
  border-radius: 0 0 8px 8px;
}

.pagination-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(65, 90, 119, 0.3);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.pagination-button:hover:not(.disabled) {
  background: rgba(65, 90, 119, 0.5);
}

.pagination-number-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(65, 90, 119, 0.3);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.pagination-number-button:hover {
  background: rgba(65, 90, 119, 0.5);
}

.pagination-number-button.active {
  background: var(--accent);
  color: white;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  user-select: none;
}

.stat-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stat-change {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

/* Mobile sidebar toggle */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  background: var(--primary);
  border: 1px solid rgba(65, 90, 119, 0.5);
  color: var(--text-primary);
  border-radius: 8px;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.mobile-toggle i {
  font-size: 24px;
}

.mobile-toggle:hover {
  background: rgba(65, 90, 119, 0.3);
}

.sidebar-close {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.sidebar-close i {
  font-size: 24px;
}

.sidebar-close:hover {
  color: var(--text-primary);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
/* Futuristic Animations and Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 15px rgba(0, 153, 255, 0.5);
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.border-gradient {
  border: 2px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image: 
    linear-gradient(to right, rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.7)),
    linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.scanner-effect {
  position: relative;
  overflow: hidden;
}

.scanner-effect::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  top: 0;
  animation: scanner 3s linear infinite;
}

@keyframes scanner {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent) }
}

/* Utility classes */
.bg-translucent {
  background: rgba(27, 38, 59, 0.7);
  backdrop-filter: blur(10px);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

.glass-effect {
  background: rgba(27, 38, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(65, 90, 119, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(65, 90, 119, 0.5), transparent);
  margin: 20px 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(65, 90, 119, 0.5), transparent);
  margin: 0 20px;
}

.border-accent {
  border: 1px solid var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  background: rgba(0, 153, 255, 0.2);
  color: var(--accent);
  border: 1px solid rgba(0, 153, 255, 0.3);
}

.badge-accent {
  background: rgba(0, 180, 216, 0.2);
  color: #00b4d8;
  border: 1px solid rgba(0, 180, 216, 0.3);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-success {
  background: rgba(42, 157, 143, 0.2);
  color: var(--success);
  border: 1px solid rgba(42, 157, 143, 0.3);
}

.badge-warning {
  background: rgba(233, 196, 106, 0.2);
  color: var(--warning);
  border: 1px solid rgba(233, 196, 106, 0.3);
}

.badge-danger {
  background: rgba(230, 57, 70, 0.2);
  color: var(--danger);
  border: 1px solid rgba(230, 57, 70, 0.3);
}

.badge-secondary {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Button info style */
.btn-info {
  background-color: #17a2b8;
  color: white;
  border: 1px solid #17a2b8;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease-in-out;
}

.btn-info:hover {
  background-color: #138496;
  border-color: #117a8b;
  color: white;
  text-decoration: none;
}

/* Loading effects */
.loading-dots {
  display: inline-flex;
  align-items: center;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  margin: 0 3px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: loading-dots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loading-dots {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 153, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loading-spinner 1s linear infinite;
}

@keyframes loading-spinner {
  to {
    transform: rotate(360deg);
  }
}


/* DataTables Global Styling */
.dataTable thead th {
  background: var(--primary) !important;
  color: var(--accent) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  letter-spacing: 1px !important;
  border-bottom: 2px solid var(--accent) !important;
  padding: 16px 12px !important;
}

.dataTable thead th:hover {
  background: var(--primary-dark) !important;
}

/* DataTables row hover effect */
.dataTable tbody tr {
  transition: all 0.2s ease !important;
}

.dataTable tbody tr:hover {
  background-color: var(--primary-dark) !important;
}

.dataTable tbody tr:hover td {
  background-color: var(--primary-dark) !important;
  color: var(--text-primary) !important;
}

/* DataTables controls spacing */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 20px !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin-top: 20px !important;
}

/* DataTables font sizes */
.dataTable tbody td {
  font-size: 0.875rem !important; /* 14px */
  line-height: 1.4 !important;
  padding: 12px !important;
}

.dataTable tbody .badge {
  font-size: 0.75rem !important; /* 12px */
  padding: 4px 8px !important;
}

.dataTable tbody .font-semibold {
  font-size: 0.875rem !important; /* 14px */
}

.dataTable tbody .text-sm {
  font-size: 0.75rem !important; /* 12px */
}

/* DataTables Pagination Minimalist Style */
.dataTables_wrapper .dataTables_paginate {
  margin-top: 16px !important;
  text-align: center !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 8px !important;
  margin: 0 2px !important;
  background: transparent !important;
  border: 1px solid rgba(65, 90, 119, 0.3) !important;
  border-radius: 6px !important;
  color: var(--text-secondary) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(65, 90, 119, 0.2) !important;
  border-color: var(--accent) !important;
  color: var(--text-primary) !important;
  transform: translateY(-1px) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 4px rgba(0, 153, 255, 0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  background: transparent !important;
  border-color: rgba(65, 90, 119, 0.3) !important;
  color: var(--text-secondary) !important;
  transform: none !important;
}

/* Hide "Previous" and "Next" text, show only icons */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
  width: 32px !important;
  padding: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous::before {
  content: '‹' !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.next::before {
  content: '›' !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.first,
.dataTables_wrapper .dataTables_paginate .paginate_button.last {
  width: 32px !important;
  padding: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.first::before {
  content: '«' !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.last::before {
  content: '»' !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
}

/* Hide original text */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next,
.dataTables_wrapper .dataTables_paginate .paginate_button.first,
.dataTables_wrapper .dataTables_paginate .paginate_button.last {
  font-size: 0 !important;
}

/* DataTables Info styling */
.dataTables_wrapper .dataTables_info {
  margin-top: 16px !important;
  color: var(--text-secondary) !important;
  font-size: 0.875rem !important;
  text-align: center !important;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .sidebar-close {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%) !important;
    width: 85%;
    z-index: 1000;
    max-height: 100vh;
    overflow: hidden;
    transition: transform 0.3s ease !important;
  }

  .sidebar.open {
    transform: translateX(0) !important;
  }
  
  .sidebar-nav {
    max-height: calc(100vh - 160px); /* Account for header and footer heights */
  }
}

/* Alternative mobile sidebar rules using body class */
body.mobile-view .sidebar {
  transform: translateX(-100%) !important;
  width: 85%;
  z-index: 1000;
  max-height: 100vh;
  overflow: hidden;
  transition: transform 0.3s ease !important;
}

body.mobile-view .sidebar.open {
  transform: translateX(0) !important;
}

  .sidebar-overlay {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding-top: 70px;
  }

  .dashboard-container {
    flex-direction: column;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .filter-card .flex:not(.filter-actions) {
    flex-direction: column;
  }

  .filter-actions {
    gap: 16px;
  }

  .filter-card .form-group {
    width: 100%;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    width: 90%;
  }

  /* Mobile table action buttons */
  .mobile-actions {
    display: none;
  }

  @media (max-width: 576px) {
    .futuristic-table .desktop-actions {
      display: none;
    }

    .futuristic-table .mobile-actions {
      display: flex;
      justify-content: center;
      margin-top: 8px;
    }

    .mobile-action-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(65, 90, 119, 0.2);
      padding: 8px;
      border-radius: 6px;
      margin: 0 4px;
      transition: all 0.2s ease;
    }

    .mobile-action-btn:hover {
      background: rgba(65, 90, 119, 0.4);
      transform: translateY(-2px);
    }

    .mobile-action-btn.edit {
      color: var(--accent);
    }

    .mobile-action-btn.edit:hover {
      box-shadow: 0 0 8px rgba(0, 153, 255, 0.4);
    }

    .mobile-action-btn.delete {
      color: var(--danger);
    }

    .mobile-action-btn.delete:hover {
      box-shadow: 0 0 8px rgba(230, 57, 70, 0.4);
    }
  }

  /* Form responsive */
  .form-group {
    width: 100%;
  }

  /* Button groups in mobile */
  .flex {
    flex-wrap: wrap;
  }

  /* Cards in mobile */
  .futuristic-card {
    width: 100%;
    overflow: auto;
  }
}

/* Navigation Sections Styling */
.nav-section {
  margin-bottom: 16px;
}

.nav-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(65, 90, 119, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.nav-section-title.collapsible:hover {
  background: rgba(65, 90, 119, 0.1);
  color: var(--accent-hover);
}

.nav-section-title .toggle-icon {
  transition: transform 0.3s ease;
  margin-left: auto;
  font-size: 0.8rem;
}

.nav-section-title.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.nav-section-items {
  overflow: hidden;
  transition: all 0.3s ease;
  max-height: 500px;
}

.nav-section-items.collapsed {
  max-height: 0;
  margin-bottom: 0;
}

.nav-section-title i {
  margin-right: 8px;
  font-size: 0.9rem;
}

.nav-sub-item {
  padding-left: 48px !important;
  position: relative;
}

.nav-sub-item::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--text-secondary);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.nav-sub-item.active::before,
.nav-sub-item:hover::before {
  background: var(--accent);
  transform: translateY(-50%) scale(1.5);
}

.nav-sub-item i {
  font-size: 0.875rem;
  width: 16px;
  margin-right: 12px;
}

/* Enhanced nav-item styling for sections */
.nav-item {
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: rgba(65, 90, 119, 0.15);
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}

.nav-sub-item:hover {
  padding-left: 47px !important;
  border-left: 3px solid var(--accent);
}

/* Mobile responsive for navigation sections */
@media (max-width: 768px) {
  .nav-section-title {
    font-size: 0.7rem;
    padding: 6px 12px;
  }
  
  .nav-sub-item {
    padding-left: 32px !important;
  }
  
  .nav-sub-item::before {
    left: 20px;
  }
  
  .nav-sub-item:hover {
    padding-left: 31px !important;
  }
}

/* Select2 Global Styling - Futuristic Theme */
.select2-container--default .select2-selection--single {
  background: rgba(13, 27, 42, 0.7) !important;
  border: 1px solid rgba(65, 90, 119, 0.3) !important;
  border-radius: 8px !important;
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 16px !important;
  color: var(--text-primary) !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1) !important;
}

.select2-container--default .select2-selection--single:hover {
  border-color: rgba(65, 90, 119, 0.5) !important;
  background: rgba(13, 27, 42, 0.9) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.25), 0 0 15px rgba(0, 153, 255, 0.15) !important;
  outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-primary) !important;
  line-height: 48px !important;
  padding: 0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.875rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(224, 225, 221, 0.4) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 16px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--accent) transparent transparent transparent !important;
  border-width: 6px 6px 0 6px !important;
}

/* Select2 Dropdown styling */
.select2-dropdown {
  background: rgba(13, 27, 42, 0.95) !important;
  border: 1px solid rgba(65, 90, 119, 0.5) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}

.select2-container--default .select2-results__option {
  background: transparent !important;
  color: var(--text-primary) !important;
  padding: 12px 16px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.875rem !important;
  transition: all 0.2s ease !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background: rgba(0, 153, 255, 0.2) !important;
  color: var(--accent) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: rgba(65, 90, 119, 0.3) !important;
  color: var(--text-primary) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background: rgba(13, 27, 42, 0.7) !important;
  border: 1px solid rgba(65, 90, 119, 0.5) !important;
  border-radius: 6px !important;
  color: var(--text-primary) !important;
  padding: 8px 12px !important;
  font-family: 'Poppins', sans-serif !important;
  margin: 8px !important;
  width: calc(100% - 16px) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.25) !important;
  outline: none !important;
}

/* Select2 Clear button styling */
.select2-selection__clear {
  color: var(--text-secondary) !important;
  font-size: 18px !important;
  font-weight: bold !important;
  line-height: 46px !important;
  right: 40px !important;
}

.select2-selection__clear:hover {
  color: var(--danger) !important;
}

/* Select2 Results message styling */
.select2-container--default .select2-results__message {
  color: var(--text-secondary) !important;
  padding: 12px 16px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.875rem !important;
}

/* Select2 Z-index management */
.select2-container {
  z-index: 1000 !important;
}

.select2-dropdown {
  z-index: 1001 !important;
}