.request-modal-wide .modal-dialog {
  max-width: 1100px;
  width: 90%;
}

.request-modal-wide .request-document-preview video {
  width: 100%;
  border-radius: var(--border-radius);
  background: #000;
  aspect-ratio: 16 / 9;
}

.request-accordion .request-document-accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: #fff;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.request-document-accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
}

.request-document-accordion-toggle:hover {
  background: var(--bg-light);
}

.request-document-accordion-toggle .request-document-icon {
  font-size: 1.15rem;
  color: #fff;
  background: var(--primary-red);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.request-document-accordion-toggle .accordion-caret {
  transition: transform 0.2s ease;
}

.request-document-accordion-toggle:not(.collapsed) .accordion-caret {
  transform: rotate(180deg);
}

.request-document-collapse-body {
  padding: 0 1rem 1rem;
}

.request-document-collapse-body .alert {
  margin-bottom: 0;
}
/**
 * Euro Assist - Euro Licencing Theme
 * Red-themed dashboard styling inspired by Euro Licencing
 */

:root {
  --primary-red: #dc3545;
  --primary-red-dark: #c82333;
  --primary-red-light: #e4606d;
  --secondary-red: #b91c1c;
  --accent-red: #ef4444;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --border-color: #e9ecef;
  --success-color: #10b981;
  --info-color: #3b82f6;
  --warning-color: #f59e0b;
  --danger-color: #dc3545;
  --border-radius: 0.5rem;
  --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 10px 25px rgba(220, 53, 69, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 0;
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(220, 53, 69, 0.1);
  z-index: 1000;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-brand {
  padding: 2rem 1.5rem;
  border-bottom: 2px solid rgba(220, 53, 69, 0.1);
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  color: white;
  font-weight: 700;
  font-size: 1.75rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-brand::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

.sidebar-brand i {
  font-size: 2rem;
  margin-right: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}

.sidebar-nav {
  padding: 1.5rem 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding-bottom: 150px; /* Add padding to prevent content from being hidden behind footer */
}

.sidebar-nav .nav-item {
  margin: 1rem 1rem;
  position: relative;
  width: calc(100% - 2rem);
}

.sidebar-nav .nav-item:first-child {
  margin-top: 1rem;
}

.sidebar-nav .nav-item:last-child {
  margin-bottom: 1rem;
}

.sidebar-nav .nav-link {
  color: var(--primary-red) !important;
  padding: 1.25rem 1.5rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  width: 100%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(220, 53, 69, 0.1);
  opacity: 1;
  visibility: visible;
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-nav .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary-red);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
  border-radius: 0 4px 4px 0;
}

.sidebar-nav .nav-link:hover::before {
  transform: scaleY(1);
  transform-origin: top;
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
}

.sidebar-nav .nav-link i {
  width: 28px;
  height: 28px;
  margin-right: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  color: var(--primary-red);
  opacity: 1;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 53, 69, 0.12);
  border-radius: 0.625rem;
  padding: 0.625rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
}

.sidebar-nav .nav-link:hover {
  background: linear-gradient(
    90deg,
    rgba(220, 53, 69, 0.12) 0%,
    rgba(220, 53, 69, 0.08) 100%
  );
  color: var(--primary-red-dark) !important;
  transform: translateX(8px);
  border-left-color: var(--primary-red);
  border-color: rgba(220, 53, 69, 0.2);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.sidebar-nav .nav-link:hover i {
  color: white;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.sidebar-nav .nav-link.active {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  color: white !important;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
  border-left-color: var(--primary-red-dark);
  border-color: rgba(200, 35, 51, 0.3);
  transform: translateX(0);
  border-left-width: 4px;
}

.sidebar-nav .nav-link.active::before {
  display: none;
}

.sidebar-nav .nav-link.active i {
  color: white !important;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
  border-radius: 0.75rem;
}

/* Sidebar Footer - User Profile Section */
.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  flex-shrink: 0;
  flex-grow: 0;
  background: var(--bg-white);
  border-top: 2px solid rgba(220, 53, 69, 0.1);
  padding: 0;
  width: 100%;
  z-index: 10;
}

.sidebar-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary-red) 50%,
    transparent 100%
  );
  margin: 0 1rem 1rem 1rem;
  flex-shrink: 0;
}

.sidebar-user-profile {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  border-radius: var(--border-radius);
  margin: 0.5rem;
  margin-top: 0;
}

.sidebar-user-profile:hover {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.1) 0%,
    rgba(220, 53, 69, 0.05) 100%
  );
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.sidebar-user-profile.show,
.sidebar-user-profile[aria-expanded="true"] {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.15) 0%,
    rgba(220, 53, 69, 0.1) 100%
  );
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.sidebar-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  flex-shrink: 0;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar-user-profile:hover .sidebar-user-avatar {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.5);
}

.sidebar-user-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.sidebar-user-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: capitalize;
  font-weight: 500;
}

.sidebar-user-menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(220, 53, 69, 0.1);
  transition: var(--transition);
  flex-shrink: 0;
}

.sidebar-user-profile:hover .sidebar-user-menu-icon {
  background: rgba(220, 53, 69, 0.2);
  color: var(--primary-red);
  transform: rotate(180deg);
}

.sidebar-user-profile.show .sidebar-user-menu-icon,
.sidebar-user-profile[aria-expanded="true"] .sidebar-user-menu-icon {
  background: var(--primary-red);
  color: white;
  transform: rotate(180deg);
}

.sidebar-user-menu-icon i {
  font-size: 0.875rem;
  transition: var(--transition);
}

/* Remove Bootstrap default dropdown arrow */
.sidebar-user-profile.dropdown-toggle::after {
  display: none !important;
}

/* Enhanced Sidebar User Dropdown */
.sidebar-footer .dropup .dropdown-menu {
  top: auto !important;
  bottom: 100% !important;
  margin-bottom: 0.5rem !important;
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
  transform: translateY(0) !important;
}

.sidebar-footer .dropup .dropdown-menu.show {
  display: block !important;
  animation: slideUp 0.3s ease-out;
}

.sidebar-user-dropdown {
  min-width: 240px;
  border: none;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(220, 53, 69, 0.2);
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  background: var(--bg-white);
  border-top: 3px solid var(--primary-red);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-user-dropdown .dropdown-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.05) 0%,
    rgba(220, 53, 69, 0.02) 100%
  );
  border-bottom: 1px solid rgba(220, 53, 69, 0.1);
  margin-bottom: 0.25rem;
}

.sidebar-user-dropdown .dropdown-item {
  padding: 0.75rem 1.25rem;
  transition: var(--transition);
  color: var(--text-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
}

.sidebar-user-dropdown .dropdown-item i {
  width: 20px;
  text-align: center;
  color: var(--primary-red);
  transition: var(--transition);
}

.sidebar-user-dropdown .dropdown-item:hover {
  background: linear-gradient(
    90deg,
    rgba(220, 53, 69, 0.1) 0%,
    rgba(220, 53, 69, 0.05) 100%
  );
  color: var(--primary-red);
  border-left-color: var(--primary-red);
  padding-left: 1.5rem;
}

.sidebar-user-dropdown .dropdown-item:hover i {
  color: var(--primary-red);
  transform: scale(1.1);
}

.sidebar-user-dropdown .dropdown-item.text-danger {
  color: var(--danger-color);
  font-weight: 600;
}

.sidebar-user-dropdown .dropdown-item.text-danger i {
  color: var(--danger-color);
}

.sidebar-user-dropdown .dropdown-item.text-danger:hover {
  background: linear-gradient(
    90deg,
    rgba(220, 53, 69, 0.15) 0%,
    rgba(220, 53, 69, 0.1) 100%
  );
  color: var(--danger-color);
  border-left-color: var(--danger-color);
}

.sidebar-user-dropdown .dropdown-divider {
  margin: 0.5rem 0;
  border-color: rgba(220, 53, 69, 0.1);
}

/* Profile Page Styles */
.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
  border: 4px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  flex-shrink: 0;
}

.profile-avatar-large:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(220, 53, 69, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(220, 53, 69, 0.5);
}

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

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(220, 53, 69, 0.3);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(220, 53, 69, 0.5);
}

/* Main Content Area */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  width: calc(100% - 280px);
}

.main-content .container-fluid {
  padding: 2rem;
}

/* Top Navbar */
.top-navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: var(--text-muted);
}

.top-navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box {
  position: relative;
}

.search-box input {
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  width: 250px;
  font-size: 0.9rem;
}

.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary-red);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  background: var(--primary-red);
  color: white;
}

/* Stats Cards */
.stats-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border-left: 4px solid var(--primary-red);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.stats-card:hover {
  box-shadow: 0 8px 24px rgba(220, 53, 69, 0.15);
  transform: translateY(-5px);
  border-left-width: 5px;
}

.stats-card .stats-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.1) 0%,
    rgba(220, 53, 69, 0.05) 100%
  );
  color: var(--primary-red);
  position: relative;
  z-index: 1;
  transition: var(--transition);
  flex-shrink: 0;
}

.stats-card:hover .stats-icon {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  color: white;
  transform: scale(1.1);
}

.stats-card .stats-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.stats-card .stats-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stats-card .stats-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* Enhanced Cards */
.card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: var(--box-shadow-lg);
}

.card-header {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.05) 0%,
    rgba(220, 53, 69, 0.02) 100%
  );
  border-bottom: 2px solid rgba(220, 53, 69, 0.1);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.card-header h5 {
  color: var(--primary-red);
  font-weight: 700;
  margin: 0;
}

.card-header h5 i {
  color: var(--primary-red);
}

.card-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.card-title i {
  color: var(--primary-red);
  margin-right: 0.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Enhanced Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-red);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-red) !important;
  color: var(--primary-red);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-red);
  border-color: var(--primary-red) !important;
  border-width: 2px !important;
  color: white;
}

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

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

.btn-warning {
  background: var(--warning-color);
  color: var(--text-dark);
}

.btn-info {
  background: var(--info-color);
}

/* Enhanced Tables */
.table {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.table thead {
  background: var(--primary-red);
  color: white;
}

.table thead th {
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 1rem;
}

.table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.table-hover tbody tr:hover {
  background: rgba(220, 53, 69, 0.05);
  transform: translateX(2px);
  transition: var(--transition);
}

.table td {
  padding: 1rem;
  vertical-align: middle;
}

/* Enhanced Badges */
.badge {
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
}

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

.badge.bg-secondary {
  background-color: var(--text-muted) !important;
}

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

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

/* Enhanced Modals */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
}

.modal-header {
  background: var(--primary-red);
  color: white;
  border-bottom: none;
  padding: 1.5rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-title {
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.btn-close {
  filter: brightness(0) invert(1);
}

/* Enhanced Forms */
.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
  outline: none;
}

/* Date Input Styling */
input[type="date"] {
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.5);
  transition: var(--transition);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  filter: invert(0.3);
}

input[type="date"]:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Code Styling */
code {
  background: rgba(220, 53, 69, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: var(--primary-red);
  font-weight: 500;
}

/* Form Enhancements */
.form-select-lg {
  padding: 0.875rem 1rem;
  font-size: 1rem;
}

/* Document Upload Styling */
.documents-container {
  min-height: 200px;
}

.document-placeholder {
  padding: 2rem;
}

.document-placeholder i {
  opacity: 0.6;
  animation: pulse 2s ease-in-out infinite;
}

.document-placeholder h6 {
  font-weight: 600;
  font-size: 1.1rem;
}

.document-placeholder p {
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.document-upload-item {
  padding: 1.25rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border: 2px dashed var(--border-color);
  transition: var(--transition);
}

.document-upload-item:hover {
  border-color: var(--primary-red);
  background: rgba(220, 53, 69, 0.02);
}

.document-upload-item label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.file-input-wrapper {
  position: relative;
}

.file-input {
  border: 2px solid var(--border-color);
  padding: 0.75rem;
  transition: var(--transition);
}

.file-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
}

.file-input:valid {
  border-color: var(--success-color);
}

.file-input-info {
  margin-top: 0.5rem;
}

.file-input-info small {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

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

/* Page Headers */
.page-header {
  background: var(--bg-white);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header h2 {
  margin: 0;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.75rem;
}

.page-header h2 i {
  color: var(--primary-red);
  margin-right: 0.5rem;
}

/* Enhanced Navbar (Fallback for non-sidebar pages) */
.navbar {
  background: var(--primary-red) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: none;
  z-index: 1030;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
}

.navbar-brand i {
  margin-right: 0.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 0.375rem;
  margin: 0 0.25rem;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--box-shadow-lg);
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
  background: var(--bg-white);
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  color: var(--text-dark);
}

.dropdown-item:hover {
  background: rgba(220, 53, 69, 0.1);
  color: var(--primary-red);
}

.dropdown-item.active,
.dropdown-item:active {
  background: var(--primary-red) !important;
  color: white !important;
}

.dropdown-item.active i,
.dropdown-item:active i {
  color: white !important;
}

/* Enhanced Accordion */
.accordion {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(220, 53, 69, 0.1);
}

.accordion-item {
  border: none;
  border-bottom: 1px solid rgba(220, 53, 69, 0.1);
  overflow: hidden;
  background: var(--bg-white);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-button {
  font-weight: 600;
  background-color: var(--bg-white);
  border: none;
  transition: var(--transition);
  padding: 1.25rem 1.5rem;
  color: var(--text-dark);
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.accordion-button:not(.collapsed) i {
  color: white;
}

.accordion-button:not(.collapsed) .badge,
.accordion-button:not(.collapsed) .collapsed-badge {
  background: rgba(255, 255, 255, 0.3) !important;
  color: white;
}

.accordion-button.collapsed .badge,
.accordion-button.collapsed .collapsed-badge {
  background: var(--primary-red) !important;
  color: white;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
  border-color: var(--primary-red);
}

.accordion-button:hover:not(.collapsed) {
  background: linear-gradient(
    135deg,
    var(--primary-red-dark) 0%,
    var(--primary-red) 100%
  );
}

.accordion-button:hover {
  background: rgba(220, 53, 69, 0.05);
  color: var(--primary-red);
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--bg-light);
}

/* Enhanced Footer */
footer {
  background: var(--text-dark) !important;
  color: white;
  padding: 2rem 0;
  margin-top: auto;
  border-top: 3px solid var(--primary-red);
}

footer p {
  margin: 0;
  font-weight: 500;
}

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  padding: 2rem;
}

.login-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
}

.login-card .card-title {
  text-align: center;
  color: var(--primary-red);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-card .card-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Demo Accounts Section */
.demo-accounts {
  font-size: 0.875rem;
}

.demo-accounts h6 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.demo-account-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.demo-account-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  line-height: 1.5;
}

.demo-account-label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 100px;
  flex-shrink: 0;
}

.demo-account-email,
.demo-account-value {
  color: var(--text-muted);
  font-family: "Courier New", monospace;
  font-size: 0.8125rem;
  word-break: break-all;
}

.demo-account-password {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.demo-account-password .demo-account-value {
  color: var(--primary-red);
  font-weight: 600;
}

/* Enhanced Alerts */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--box-shadow);
  border-left: 4px solid;
}

.alert-danger {
  background: #fee;
  color: #721c24;
  border-left-color: var(--danger-color);
}

.alert-success {
  background: #dff;
  color: #155724;
  border-left-color: var(--success-color);
}

.alert-info {
  background: #e5f4ff;
  color: #0c5460;
  border-left-color: var(--info-color);
}

/* Enhanced List Groups */
.list-group-item {
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  transition: var(--transition);
}

.list-group-item:hover {
  background: var(--bg-light);
  transform: translateX(5px);
  border-left: 3px solid var(--primary-red);
}

.list-group-item:last-child {
  border-bottom: none;
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
  border-color: var(--primary-red);
  border-right-color: transparent;
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Action Buttons */
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-info {
  border-width: 2px !important;
  border-style: solid !important;
  font-weight: 600;
}

/* Border colors match icon colors */
.btn-outline-primary {
  border-color: var(--primary-red) !important;
  color: var(--primary-red);
}

.btn-outline-primary i {
  color: var(--primary-red);
}

.btn-outline-secondary {
  border-color: #6c757d !important;
  color: #6c757d;
}

.btn-outline-secondary i {
  color: #6c757d;
}

.btn-outline-danger {
  border-color: var(--danger-color) !important;
  color: var(--danger-color);
}

.btn-outline-danger i {
  color: var(--danger-color);
}

.btn-outline-success {
  border-color: var(--success-color) !important;
  color: var(--success-color);
}

.btn-outline-success i {
  color: var(--success-color);
}

.btn-outline-warning {
  border-color: var(--warning-color) !important;
  color: var(--warning-color);
}

.btn-outline-warning i {
  color: var(--warning-color);
}

.btn-outline-info {
  border-color: #0dcaf0 !important;
  color: #0dcaf0;
}

.btn-outline-info i {
  color: #0dcaf0;
}

.btn-outline-primary:hover {
  background: var(--primary-red);
  border-color: var(--primary-red) !important;
  color: white;
  border-width: 2px !important;
}

.btn-outline-primary:hover i {
  color: white;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  border-color: #6c757d !important;
  color: white;
  border-width: 2px !important;
}

.btn-outline-secondary:hover i {
  color: white;
}

.btn-outline-danger:hover {
  background: var(--danger-color);
  border-color: var(--danger-color) !important;
  color: white;
  border-width: 2px !important;
}

.btn-outline-danger:hover i {
  color: white;
}

.btn-outline-success:hover {
  background: var(--success-color);
  border-color: var(--success-color) !important;
  color: white;
  border-width: 2px !important;
}

.btn-outline-success:hover i {
  color: white;
}

.btn-outline-warning:hover {
  background: var(--warning-color);
  border-color: var(--warning-color) !important;
  color: white;
  border-width: 2px !important;
}

.btn-outline-warning:hover i {
  color: white;
}

.btn-outline-info:hover {
  background: #0dcaf0;
  border-color: #0dcaf0 !important;
  color: white;
  border-width: 2px !important;
}

.btn-outline-info:hover i {
  color: white;
}

/* Ensure all action buttons in tables and button groups have borders */
.btn-group .btn-outline-primary,
.btn-group .btn-outline-secondary,
.btn-group .btn-outline-danger,
.btn-group .btn-outline-success,
.btn-group .btn-outline-warning,
.btn-group .btn-outline-info,
.btn-group-sm .btn-outline-primary,
.btn-group-sm .btn-outline-secondary,
.btn-group-sm .btn-outline-danger,
.btn-group-sm .btn-outline-success,
.btn-group-sm .btn-outline-warning,
.btn-group-sm .btn-outline-info,
table .btn-outline-primary,
table .btn-outline-secondary,
table .btn-outline-danger,
table .btn-outline-success,
table .btn-outline-warning,
table .btn-outline-info,
.btn-sm.btn-outline-primary,
.btn-sm.btn-outline-secondary,
.btn-sm.btn-outline-danger,
.btn-sm.btn-outline-success,
.btn-sm.btn-outline-warning,
.btn-sm.btn-outline-info {
  border-width: 2px !important;
  border-style: solid !important;
}

/* Specific styling for bank/dealers page approve and suspend buttons */
.btn-group-sm .btn-outline-success {
  border-color: var(--success-color) !important;
}

.btn-group-sm .btn-outline-warning {
  border-color: var(--warning-color) !important;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red-dark);
}

/* Sidebar Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: opacity 0.3s;
}

.sidebar-backdrop.show {
  display: block;
}

/* Sidebar Toggle Button */
#sidebarToggle {
  border: none;
  background: transparent;
  padding: 0.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-dark) !important;
  transition: var(--transition);
}

#sidebarToggle:hover {
  color: var(--primary-red) !important;
  background: var(--bg-light);
  border-radius: 0.375rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 1001;
    transition: transform 0.3s ease;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .main-content .container-fluid {
    padding: 1rem;
  }

  .top-navbar {
    padding: 1rem;
    z-index: 1000;
  }

  .search-box input {
    width: 200px;
  }

  .search-box {
    display: none;
  }

  .user-profile {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

@media (min-width: 993px) {
  .sidebar {
    transform: translateX(0) !important;
    display: block !important;
    width: 280px;
  }

  #sidebarToggle {
    display: none !important;
  }

  .sidebar-backdrop {
    display: none !important;
  }

  .main-content {
    margin-left: 280px !important;
    width: calc(100% - 280px) !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .stats-card {
    padding: 1.25rem;
    gap: 1rem;
  }

  .stats-card .stats-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.75rem;
  }

  .stats-card .stats-value {
    font-size: 1.75rem;
  }

  .stats-card .stats-label {
    font-size: 0.8rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .table thead th {
    font-size: 0.75rem;
    padding: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .top-navbar,
  .btn,
  footer {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid var(--border-color);
  }
}

/* Smooth Animations */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus Styles */
*:focus {
  outline: none;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Request Modal Enhancements */
.request-modal {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.request-modal-header {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  color: white;
  padding: 1.5rem;
  border-bottom: none;
}

.request-modal-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
}

.request-modal-header .modal-title {
  color: white;
  font-weight: 600;
  font-size: 1.5rem;
}

.request-modal-header small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.request-modal-body {
  padding: 2rem;
  background: var(--bg-light);
}

.request-info-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}

.request-info-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.request-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.request-info-content {
  flex: 1;
}

.request-info-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.request-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.request-section {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  overflow: hidden;
}

.request-section-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.request-section-header i {
  color: var(--primary-red);
}

.request-section-body {
  padding: 1.5rem;
}

.request-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-red);
  width: fit-content;
}

.request-section-title i {
  color: var(--primary-red);
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.request-section-content {
  padding: 0.5rem 0;
}

.request-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.request-detail-row:last-child {
  border-bottom: none;
}

.request-detail-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  flex: 0 0 40%;
  display: flex;
  align-items: center;
}

.request-detail-label i {
  font-size: 0.75rem;
  width: 16px;
  text-align: center;
  margin-right: 0.5rem;
}

.request-detail-item {
  margin-bottom: 1rem;
}

.request-detail-item:last-child {
  margin-bottom: 0;
}

.request-detail-item label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.request-detail-item label i {
  font-size: 0.75rem;
}

.request-detail-value {
  font-size: 1rem;
  color: var(--text-dark);
  padding: 0.5rem 0;
  word-break: break-word;
}

.request-detail-value code {
  background: var(--bg-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--primary-red);
  font-weight: 600;
}

.request-documents-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.request-document-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.request-document-item:hover {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-red);
}

.request-document-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #dc3545 0%, #b91c1c 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.request-document-info {
  flex: 1;
}

.request-document-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.request-document-info small {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.request-document-action {
  margin-left: 1rem;
}

.request-timeline {
  position: relative;
  padding-left: 2.5rem;
  padding-top: 0.5rem;
}

.request-timeline::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--primary-red) 0%,
    rgba(220, 53, 69, 0.3) 50%,
    #e9ecef 100%
  );
  border-radius: 2px;
  z-index: 0;
}

.request-timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-start;
  transition: var(--transition);
}

.request-timeline-item:last-child {
  margin-bottom: 0;
}

.request-timeline-item::after {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 40px;
  width: 2px;
  height: calc(100% + 0.75rem);
  background: var(--border-color);
  z-index: 0;
}

.request-timeline-item:last-child::after {
  display: none;
}

.request-timeline-icon {
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: var(--transition);
}

.request-timeline-item:hover .request-timeline-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.request-timeline-content {
  flex: 1;
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  margin-left: 1rem;
}

.request-timeline-item:hover .request-timeline-content {
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
  transform: translateX(4px);
}

.request-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.request-timeline-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.request-timeline-date-badge {
  background: var(--bg-light);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.request-timeline-date {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.request-timeline-description {
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
  border-left: 3px solid var(--primary-red);
}

.request-timeline-detail-row {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.request-timeline-detail-row i {
  width: 20px;
  text-align: center;
}

.request-timeline-meta {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.request-timeline-actor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.request-timeline-actor-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.request-timeline-full-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.request-timeline-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.request-timeline-status-badges .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.request-timeline-item-creation .request-timeline-content {
  border-left: 4px solid var(--primary-red);
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.02) 0%, white 3%);
}

.request-timeline-item-assignment .request-timeline-content {
  border-left: 4px solid var(--warning-color);
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.02) 0%, white 3%);
}

.request-timeline-item-document .request-timeline-content {
  border-left: 4px solid var(--success-color);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.02) 0%, white 3%);
}

.request-timeline-description .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  text-transform: capitalize;
}

.request-timeline-description i.fa-arrow-right {
  color: var(--primary-red);
  font-size: 0.75rem;
}

/* Car Make/Model Dropdown Styles */
.position-relative .dropdown-menu {
  position: fixed !important;
  margin-top: 0.25rem;
  z-index: 99999 !important;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  background: white;
  max-height: 300px;
  overflow-y: auto;
}

.position-relative .dropdown-menu .dropdown-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.position-relative .dropdown-menu .dropdown-item-text {
  padding: 0.5rem 1rem;
  font-style: italic;
}

/* Year Picker Styles */
.year-selector {
  position: relative;
}

.year-input {
  padding-right: 45px;
  cursor: pointer;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc3545"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 22px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e0e7ff;
}

.year-input:hover {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.year-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
  outline: none;
}

.year-picker-popup {
  display: none;
  position: fixed;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 99999 !important;
  min-width: 300px;
  overflow: hidden;
  animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.year-picker-popup.active {
  display: block;
}

.year-picker-popup::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.08));
}

.year-picker-popup::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #e5e7eb;
  z-index: -1;
}

.year-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  position: relative;
}

.year-picker-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(220, 53, 69, 0.2) 50%,
    transparent 100%
  );
}

.year-nav-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 12px;
  color: var(--primary-red);
  font-size: 18px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.year-nav-btn:hover:not(:disabled) {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.25);
}

.year-nav-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.year-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.5);
  color: #9ca3af;
}

.year-decade-range {
  font-size: 15px;
  color: #1f2937;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.year-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.year-picker-option {
  padding: 12px 8px;
  text-align: center;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.year-picker-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.year-picker-option:hover {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

.year-picker-option:hover::before {
  opacity: 1;
}

.year-picker-option.selected {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  color: white;
  font-weight: 600;
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.year-picker-option.selected::before {
  opacity: 0;
}

.year-picker-option.selected::after {
  content: "✓";
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

/* Enhanced Select Input Styles */
.enhanced-select-input {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.65rem 2.5rem 0.65rem 0.85rem;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8f9fa;
  width: 100%;
  min-height: 42px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
}

.enhanced-select-input:hover {
  border-color: var(--primary-red);
  background: white;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.enhanced-select-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15),
    0 4px 12px rgba(220, 53, 69, 0.15);
  background: white;
  outline: none;
  transform: translateY(-1px);
}

.enhanced-select-input:disabled {
  background: #e9ecef;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Loading Indicator */
.select-loading-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: var(--primary-red);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced Dropdown Menu */
.enhanced-dropdown-menu {
  position: fixed !important;
  margin-top: 0.5rem;
  z-index: 99999 !important;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  background: white;
  animation: slideDownFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 350px;
  overflow-y: auto;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enhanced-dropdown-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid #f8f9fa;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
}

.enhanced-dropdown-item:last-child {
  border-bottom: none;
}

.enhanced-dropdown-item:hover {
  background: linear-gradient(
    90deg,
    rgba(220, 53, 69, 0.08) 0%,
    rgba(220, 53, 69, 0.05) 100%
  );
  color: var(--text-dark);
  transform: translateX(4px);
  border-left: 3px solid var(--primary-red);
  padding-left: calc(1rem - 3px);
}

.enhanced-dropdown-item .branch-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.1) 0%,
    rgba(220, 53, 69, 0.05) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.enhanced-dropdown-item:hover .branch-icon {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.enhanced-dropdown-item:hover .branch-icon i {
  color: white !important;
}

.enhanced-dropdown-item .fw-semibold {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.enhanced-dropdown-item:hover .fw-semibold {
  color: var(--primary-red);
}

/* Enhanced Form Controls */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-control:hover:not(:disabled),
.form-select:hover:not(:disabled) {
  border-color: rgba(220, 53, 69, 0.3);
}

/* Ensure dropdown containers don't create stacking context issues */
.position-relative {
  position: relative;
  z-index: auto;
}

/* When dropdown is active, raise the container */
.position-relative.dropdown-active {
  z-index: 9998;
}

/* Enhanced Card Styling */
.card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  z-index: 1;
}

.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 2px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.card-header .card-title {
  color: var(--text-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.card-header .card-title i {
  color: var(--primary-red);
}

/* Enhanced Form Labels */
.form-label.fw-bold {
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.form-label.fw-bold i {
  margin-right: 0.5rem;
}

/* Enhanced Small Text */
small.text-muted {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
}

small.text-muted i {
  margin-right: 0.25rem;
  font-size: 0.75rem;
}

/* Enhanced Form Inputs */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-control:hover:not(:disabled) {
  border-color: rgba(220, 53, 69, 0.3);
  background: white;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.08);
}

.form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15),
    0 4px 12px rgba(220, 53, 69, 0.15);
  background: white;
  outline: none;
  transform: translateY(-1px);
}

.form-select {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.65rem 2.5rem 0.65rem 0.85rem;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.form-select:hover:not(:disabled) {
  border-color: rgba(220, 53, 69, 0.3);
  background: white;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.08);
}

.form-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15),
    0 4px 12px rgba(220, 53, 69, 0.15);
  background: white;
  outline: none;
}

.form-select-lg {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  min-height: 48px;
}

.enhanced-select {
  background-image: linear-gradient(
      45deg,
      transparent 50%,
      var(--primary-red) 50%
    ),
    linear-gradient(135deg, var(--primary-red) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* Enhanced Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-red-dark) 100%
  );
  border: none;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-red-dark) 0%, #bd2130 100%);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* Enhanced Page Header */
.page-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
}

.page-header h2 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.page-header h2 i {
  color: var(--primary-red);
  margin-right: 0.75rem;
}

/* Enhanced Card Body */
.card-body {
  padding: 1.5rem;
}

/* Smooth Scrollbar for Dropdowns */
.dropdown-menu::-webkit-scrollbar,
.enhanced-dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track,
.enhanced-dropdown-menu::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb,
.enhanced-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover,
.enhanced-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red-dark);
}

.request-modal-footer {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.document-preview-container {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: white;
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.document-preview-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.document-preview-container iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* Enhanced Assign Modal */
#assignModal .request-modal-body {
  padding: 2rem;
}

#assignModal .form-select-lg {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

#assignModal .form-select-lg:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
}

#assignModal .alert-info {
  background: linear-gradient(
    135deg,
    rgba(13, 202, 240, 0.1) 0%,
    rgba(13, 202, 240, 0.05) 100%
  );
  border: 1px solid rgba(13, 202, 240, 0.3);
  border-radius: var(--border-radius);
  color: var(--text-dark);
}

/* Enhanced Document Sections */
.request-section-title i.fa-user-tie {
  color: var(--primary-red);
}

.request-section-title i.fa-store {
  color: var(--info-color);
}

/* Representative Documents - Highlight with red accent */
.request-section-rep {
  border-left: 4px solid var(--primary-red);
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.02) 0%, white 5%);
}

.request-section-rep .request-section-title {
  border-bottom-color: var(--primary-red);
}

/* Dealer Documents - Highlight with blue accent */
.request-section-dealer {
  border-left: 4px solid var(--info-color);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.02) 0%, white 5%);
}

.request-section-dealer .request-section-title {
  border-bottom-color: var(--info-color);
}

/* Modal Responsive */
@media (max-width: 768px) {
  .request-modal-body {
    padding: 1.5rem;
  }

  .request-section-body {
    padding: 1rem;
  }

  .request-info-card {
    flex-direction: column;
    text-align: center;
  }

  .request-info-icon {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .request-document-item {
    flex-direction: column;
    text-align: center;
  }

  .request-document-icon {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .request-document-action {
    margin-left: 0;
    margin-top: 0.75rem;
    width: 100%;
  }

  .request-document-action .btn {
    width: 100%;
  }
}

/* Traffic Management Page Styles */
.traffic-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.traffic-card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
}

.traffic-card-header h5 {
  color: var(--text-dark);
  font-weight: 600;
}

.traffic-card-header i {
  color: var(--primary-red);
}

.traffic-units-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.traffic-unit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.traffic-unit-item:hover {
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
  transform: translateY(-2px);
}

.traffic-unit-selected {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.1) 0%,
    rgba(220, 53, 69, 0.05) 100%
  );
  border-color: var(--primary-red);
  border-width: 2px;
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2);
}

.traffic-unit-selected .traffic-unit-content {
  color: var(--primary-red);
}

.traffic-unit-selected .traffic-unit-icon {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  color: white;
}

.traffic-unit-content {
  display: flex;
  align-items: center;
  flex: 1;
  cursor: pointer;
}

.traffic-unit-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  font-size: 1.25rem;
  margin-right: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.traffic-unit-item:hover .traffic-unit-icon {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  color: white;
  transform: scale(1.1);
}

.traffic-unit-info {
  flex: 1;
}

.traffic-unit-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.traffic-unit-city {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.traffic-unit-badge {
  margin-top: 0.5rem;
  display: inline-block;
  font-size: 0.75rem;
}

.traffic-unit-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.traffic-branches-placeholder {
  padding: 3rem 1rem;
}

.traffic-branches-placeholder i {
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

/* Traffic Modal Styles */
.traffic-modal {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.traffic-modal-header {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  color: white;
  padding: 1.5rem;
  border-bottom: none;
}

.traffic-modal-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
}

.traffic-modal-header .modal-title {
  color: white;
  font-weight: 600;
  font-size: 1.5rem;
}

.traffic-modal-header small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.traffic-modal-footer {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

/* Traffic Table Enhancements */
#branchesTableContainer .table {
  margin-bottom: 0;
}

#branchesTableContainer .table thead th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

#branchesTableContainer .table thead th i {
  color: var(--primary-red);
}

#branchesTableContainer .table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

#branchesTableContainer .table tbody tr {
  transition: var(--transition);
}

#branchesTableContainer .table tbody tr:hover {
  background: rgba(220, 53, 69, 0.05);
  transform: scale(1.01);
}

/* Responsive Traffic Page */
@media (max-width: 768px) {
  .traffic-unit-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .traffic-unit-content {
    width: 100%;
    margin-bottom: 1rem;
  }

  .traffic-unit-actions {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }

  .traffic-modal-header {
    padding: 1rem;
  }

  .traffic-modal-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .traffic-modal-header .modal-title {
    font-size: 1.25rem;
  }
}

/* Representatives Page Table Enhancements */
.card .table thead th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.card .table thead th i {
  color: var(--primary-red);
}

.card .table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

.card .table tbody tr {
  transition: var(--transition);
}

.card .table tbody tr:hover {
  background: rgba(220, 53, 69, 0.05);
}

.card .table tbody code {
  background: var(--bg-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--primary-red);
  font-weight: 600;
}

/* Assignments Page Styles */
.assignment-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
}

.assignment-card:hover {
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.15);
  transform: translateY(-2px);
}

.assignment-card-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 2px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  position: relative;
}

.assignment-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.assignment-info-item i {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.assignment-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.assignment-actions .btn {
  border-width: 2px !important;
  border-style: solid !important;
}

.assignment-actions .btn-outline-primary {
  border-color: var(--primary-red) !important;
  color: var(--primary-red);
}

.assignment-actions .btn-outline-primary i {
  color: var(--primary-red);
}

.assignment-actions .btn-outline-primary:hover {
  background: var(--primary-red);
  border-color: var(--primary-red) !important;
  color: white;
}

.assignment-actions .btn-outline-primary:hover i {
  color: white;
}

.assignment-actions .btn-outline-success {
  border-color: var(--success-color) !important;
  color: var(--success-color);
}

.assignment-actions .btn-outline-success i {
  color: var(--success-color);
}

.assignment-actions .btn-outline-success:hover {
  background: var(--success-color);
  border-color: var(--success-color) !important;
  color: white;
}

.assignment-actions .btn-outline-success:hover i {
  color: white;
}

.assignment-actions .btn-outline-info {
  border-color: #0dcaf0 !important;
  color: #0dcaf0;
}

.assignment-actions .btn-outline-info i {
  color: #0dcaf0;
}

.assignment-actions .btn-outline-info:hover {
  background: #0dcaf0;
  border-color: #0dcaf0 !important;
  color: white;
}

.assignment-actions .btn-outline-info:hover i {
  color: white;
}

/* Enhanced Assignment Card Styles */
.assignment-card-status-bar {
  height: 4px;
  width: 100%;
  background: var(--border-color);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.assignment-card-status-bar[data-status="assigned"] {
  background: linear-gradient(90deg, #0dcaf0 0%, #0aa2c0 100%);
}

.assignment-card-status-bar[data-status="in_progress"] {
  background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
}

.assignment-card-status-bar[data-status="vehicle_picking_up"] {
  background: linear-gradient(90deg, var(--primary-red) 0%, #c53030 100%);
}

.assignment-card-status-bar[data-status="vehicle_picked_up"] {
  background: linear-gradient(90deg, var(--primary-red) 0%, #b91c1c 100%);
}

.assignment-card-status-bar[data-status="in_traffic_unit"] {
  background: linear-gradient(90deg, #dc3545 0%, #b91c1c 100%);
}

.assignment-card-status-bar[data-status="completed"] {
  background: linear-gradient(90deg, var(--success-color) 0%, #0f5132 100%);
}

.assignment-header-left {
  flex: 1;
}

.assignment-header-right {
  text-align: right;
}

.assignment-id-badge {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-red);
  display: flex;
  align-items: center;
}

.assignment-type-badge {
  display: inline-block;
}

.assignment-timestamp {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.assignment-progress {
  position: relative;
  height: 32px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.assignment-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-red) 0%, #b91c1c 100%);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.assignment-progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.assignment-progress-bar.completed {
  background: linear-gradient(90deg, var(--success-color) 0%, #0f5132 100%);
}

.assignment-progress-text {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
  position: relative;
}

.assignment-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.assignment-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.assignment-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-red);
  width: fit-content;
}

.assignment-section-title i {
  color: var(--primary-red);
  font-size: 0.875rem;
}

.assignment-section-content {
  padding-left: 0.5rem;
}

.assignment-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.assignment-detail-row:last-child {
  border-bottom: none;
}

.assignment-detail-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  flex: 0 0 40%;
  display: flex;
  align-items: center;
}

.assignment-detail-label i {
  font-size: 0.75rem;
  width: 16px;
  text-align: center;
}

.assignment-detail-value {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  flex: 1;
  text-align: right;
  word-break: break-word;
}

.assignment-detail-value code {
  background: var(--bg-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--primary-red);
  font-weight: 600;
}

.assignment-completed-badge {
  background: linear-gradient(
    135deg,
    rgba(25, 135, 84, 0.1) 0%,
    rgba(25, 135, 84, 0.05) 100%
  );
  border: 2px solid var(--success-color);
  color: var(--success-color);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.assignment-actions .btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.assignment-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.assignment-actions .btn:active {
  transform: translateY(0);
}

/* Empty State Styles */
.empty-state-container {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.03) 0%,
    rgba(220, 53, 69, 0.01) 100%
  );
  border-radius: var(--border-radius-lg);
  border: 2px dashed var(--border-color);
}

.empty-state-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(220, 53, 69, 0.2);
}

.empty-state-icon i {
  font-size: 3rem;
  color: white;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.empty-state-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .assignment-detail-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .assignment-detail-label {
    margin-bottom: 0.25rem;
    flex: 1;
  }

  .assignment-detail-value {
    text-align: left;
    flex: 1;
    width: 100%;
  }

  .empty-state-container {
    padding: 3rem 1.5rem;
  }

  .empty-state-icon {
    width: 100px;
    height: 100px;
  }

  .empty-state-icon i {
    font-size: 2.5rem;
  }
}
