/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a1f3a;
  --secondary-color: #4f46e5;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  --dark-color: #1e293b;
  --light-color: #f1f5f9;
  --white: #ffffff;
  --gray: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-info: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-profit: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100vw;
  font-size: 14px; /* Base font size reduced from default 16px */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8edf3 100%);
  background-attachment: fixed;
  color: #1e293b;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100vw;
  position: relative;
  font-size: 14px; /* Consistent base font size */
}

/* Dashboard Body Styles */
.dashboard-body {
  background: url('../../download-free-car-images.jpg') center center / cover no-repeat fixed;
  background-attachment: fixed;
  position: relative;
}

.dashboard-body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
  pointer-events: none;
}

.dashboard-body .container {
  position: relative;
  z-index: 1;
}

.dashboard-body .page-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.dashboard-body .stat-card,
.dashboard-body .nav-card,
.dashboard-body .table-responsive {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dashboard-body .recent-section {
  position: relative;
  z-index: 1;
  background: transparent;
}

.dashboard-body .main-navigation {
  position: relative;
  z-index: 1;
  background: transparent;
}

.dashboard-body .main-navigation h2 {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--white) !important;
  background-clip: unset !important;
}

.dashboard-body .main-navigation h2 i {
  color: var(--primary-color);
  text-shadow: none;
}

.dashboard-body .stat-card {
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dashboard-body .nav-card {
  background: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-body .table-responsive {
  background: rgba(255, 255, 255, 0.98);
}

.dashboard-body .recent-section h2 {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--white) !important;
  background-clip: unset !important;
}

.dashboard-body .recent-section h2 i {
  color: var(--primary-color);
  text-shadow: none;
}

.dashboard-body .recent-section .table-responsive {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Login Page Styles */
.login-body {
  background: url('../../download-free-car-images.jpg') center center / cover no-repeat fixed;
  background-attachment: fixed;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.login-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.login-body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.login-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

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

.login-box {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 45px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
  z-index: 1;
}

.login-logo-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.login-logo-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
  animation: iconFloat 3s ease-in-out infinite;
  z-index: 2;
  position: relative;
  background: transparent;
}

.login-logo-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

.login-logo-wrapper i.fa-car {
  color: #ffffff;
  font-size: 42px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  animation: iconFloat 3s ease-in-out infinite;
  z-index: 2;
}

.login-logo-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.5);
  animation: badgePulse 2s ease-in-out infinite;
  z-index: 3;
}

.login-logo-wrapper .login-logo-badge {
  display: none; /* Hide badge when using logo image */
}

.login-logo-badge i {
  font-size: 12px;
  color: #ffffff;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

.login-header h1 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.login-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.login-form .form-group {
  margin-bottom: 24px;
  position: relative;
}

.login-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

.login-form label i {
  color: #ffffff !important;
  font-size: 16px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.login-form input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.login-form input:focus,
.login-form input:not(:placeholder-shown) {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.login-form input:focus {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.9);
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
  width: 100%;
}

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

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.btn-primary i {
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.login-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.login-footer p {
  margin: 5px 0;
  opacity: 0.9;
}

.login-footer p:first-child {
  margin-bottom: 8px;
}

/* Alert Styles */
.alert {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error {
  background-color: #fee;
  color: var(--danger-color);
  border: 1px solid #fcc;
}

.alert-success {
  background-color: #efe;
  color: var(--success-color);
  border: 1px solid #cfc;
}

.alert-info {
  background-color: #e7f3ff;
  color: var(--info-color);
  border: 1px solid #b8daff;
}

/* Header Styles */
.main-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: var(--white);
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(102, 126, 234, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow-x: hidden;
  overflow-y: hidden;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 100%;
}

.main-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

.header-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s ease;
  color: var(--white);
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-icon-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Remove background frame when using logo image */
.logo-icon-wrapper.has-logo-img,
.logo-icon-wrapper:has(.logo-img) {
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.logo-icon-wrapper.has-logo-img .logo-badge,
.logo-icon-wrapper:has(.logo-img) .logo-badge {
  display: none; /* Hide badge when using logo image */
}

.logo:hover .logo-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Remove hover effects on frame when using logo image */
.logo:hover .logo-icon-wrapper.has-logo-img,
.logo:hover .logo-icon-wrapper:has(.logo-img) {
  transform: scale(1.05);
  box-shadow: none;
  border-color: transparent;
}

.logo-icon-wrapper i.fa-car {
  font-size: 32px;
  color: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  animation: iconFloat 3s ease-in-out infinite;
  z-index: 2;
}

.logo-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
  animation: badgePulse 2s ease-in-out infinite;
  z-index: 3;
}

.logo-badge i {
  font-size: 10px;
  color: #ffffff;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.8);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
  position: relative;
}

.logo-tagline {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
  line-height: 1;
}

.logo:hover .logo-name {
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo:hover .logo-tagline {
  opacity: 1;
  color: rgba(255, 255, 255, 1);
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(3deg);
  }
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}

.menu-text {
  display: inline;
}

@media (max-width: 768px) {
  .menu-text {
    display: none;
  }
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-info i {
  font-size: 24px;
}

.btn-dashboard {
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

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

.btn-dashboard:hover::before {
  left: 100%;
}

.btn-dashboard:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-dashboard i {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-logout {
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(220, 53, 69, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 53, 69, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-logout:hover {
  background: rgba(220, 53, 69, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
  border-color: rgba(220, 53, 69, 0.5);
}

.btn-logout i {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Profile Dropdown */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-toggle {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 15px;
  white-space: nowrap;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.profile-toggle i:first-child {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.profile-toggle i {
  font-size: 20px;
  flex-shrink: 0;
}

.profile-toggle span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 150px;
}

.profile-name {
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.profile-role {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-toggle .fa-chevron-down {
  font-size: 12px;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 4px;
}

.profile-dropdown.active .profile-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  overflow: hidden;
}

.profile-dropdown.active .profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--dark-color);
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.profile-menu-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.profile-menu-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.profile-menu-item:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.profile-menu-item i {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.profile-menu-header {
  padding: 15px 20px;
  background: var(--light-color);
  border-bottom: 1px solid var(--border-color);
}

.profile-menu-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-menu-user-info strong {
  color: var(--dark-color);
  font-size: 15px;
}

.profile-menu-role {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.profile-menu-logout {
  color: #dc3545 !important;
  border-top: 1px solid var(--border-color);
  margin-top: 5px;
}

.profile-menu-logout:hover {
  background-color: #fee !important;
  color: #c82333 !important;
}

/* Container and Layout - Consistent width across all pages */
.container {
  max-width: 1000px !important;
  margin: 0 auto;
  padding: 20px 15px;
  flex: 1;
  animation: fadeIn 0.6s ease-in;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Ensure all page containers use same width */
.dashboard-body .container,
.login-container,
.form-container {
  max-width: 1000px !important;
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page-header {
  margin-bottom: 25px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-secondary);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.page-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.page-header-content > div {
  flex: 1;
  min-width: 0;
}

.btn-text-header {
  display: inline;
}

/* Back Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  border: 2px solid rgba(79, 70, 229, 0.2);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.btn-back:hover {
  background: var(--gradient-secondary);
  color: var(--white);
  transform: translateX(-5px);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  border-color: transparent;
}

.btn-back i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-back:hover i {
  transform: translateX(-3px);
}

.page-header-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-role-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-header h1 {
  color: var(--primary-color);
  font-size: 28px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.page-header h1 i {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 26px;
}

.page-header p {
  color: var(--gray);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .btn-text-header {
    display: none;
  }

  .page-header {
    padding: 12px;
  }

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

  .page-header .btn {
    width: 100%;
    justify-content: center;
  }

  .page-header h1 {
    font-size: 1.4rem;
    flex-wrap: wrap;
  }

  .page-header h1 i {
    font-size: 1.3rem;
  }

  .page-header p {
  font-size: 13px;
  }

  .btn-back {
    margin-bottom: 15px;
    width: 100%;
    justify-content: center;
  }
}

/* Statistics Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
  max-width: 100%;
}

.stat-card {
  background: var(--white);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }
.stat-card:nth-child(6) { animation-delay: 0.6s; }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-primary .stat-icon {
  background: var(--gradient-secondary);
}
.stat-success .stat-icon {
  background: var(--gradient-success);
}
.stat-info .stat-icon {
  background: var(--gradient-info);
}
.stat-warning .stat-icon {
  background: var(--gradient-warning);
}
.stat-danger .stat-icon {
  background: var(--gradient-danger);
}
.stat-profit .stat-icon {
  background: var(--gradient-profit);
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-content h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.stat-content p {
  color: var(--gray);
  font-size: 12px;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Navigation */
.main-navigation {
  margin-bottom: 40px;
}

.main-navigation h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.recent-section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  max-width: 100%;
}

.nav-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
  text-decoration: none;
  color: var(--primary-color);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.5s ease-out backwards;
}

.nav-card:nth-child(1) { animation-delay: 0.1s; }
.nav-card:nth-child(2) { animation-delay: 0.15s; }
.nav-card:nth-child(3) { animation-delay: 0.2s; }
.nav-card:nth-child(4) { animation-delay: 0.25s; }
.nav-card:nth-child(5) { animation-delay: 0.3s; }
.nav-card:nth-child(6) { animation-delay: 0.35s; }
.nav-card:nth-child(7) { animation-delay: 0.4s; }

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-card-blue:hover::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
  opacity: 1;
}

.nav-card-green:hover::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  opacity: 1;
}

.nav-card-orange:hover::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
  opacity: 1;
}

.nav-card-purple:hover::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  opacity: 1;
}

.nav-card-teal:hover::before {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
  opacity: 1;
}

.nav-card-red:hover::before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  opacity: 1;
}

.nav-card-pink:hover::before {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(219, 39, 119, 0.1) 100%);
  opacity: 1;
}

.nav-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* Multicolor Navigation Icons */
.nav-card-blue .nav-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.nav-card-green .nav-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.nav-card-orange .nav-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.nav-card-purple .nav-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.nav-card-teal .nav-icon {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.nav-card-red .nav-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.nav-card-pink .nav-icon {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.nav-card:hover .nav-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: var(--shadow-xl);
}

.nav-card h3 {
  font-size: 16px;
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.nav-card p {
  color: var(--gray);
  font-size: 12px;
  margin: 0;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.nav-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-xl);
}

/* Table Styles */
.table-responsive {
  overflow-x: hidden;
  overflow-y: visible;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.12), 0 2px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
  width: 100%;
  max-width: 100%;
}

.table-responsive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  border-radius: 20px 20px 0 0;
  z-index: 1;
}

.data-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.data-table thead {
  background: var(--gradient-secondary);
  color: var(--white);
}

.data-table th {
  padding: 18px 15px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 16px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.data-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  transform: translateX(5px);
  border-left-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

/* Badge Styles */
.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-available {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid rgba(21, 87, 36, 0.2);
}

.badge-sold {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border: 1px solid rgba(12, 84, 96, 0.2);
}

.badge-reserved {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border: 1px solid rgba(133, 100, 4, 0.2);
}

/* Form Styles */
.form-container {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.vehicle-form {
  animation: fadeIn 0.6s ease-in;
}

.form-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
  animation: fadeInUp 0.5s ease-out backwards;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }

.form-section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.form-section-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.form-section-header h2 {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--dark-color);
  font-weight: 600;
  font-size: 13px;
}

.form-group label::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--gradient-secondary);
  border-radius: 2px;
  display: inline-block;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Enhanced Select Dropdown Styles */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234F46E5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  padding-right: 45px;
  cursor: pointer;
}

.form-group select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234F46E5' d='M6 3l5 5H1z'/%3E%3C/svg%3E");
}

.form-group select option {
  padding: 12px 15px;
  font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1), 0 4px 12px rgba(79, 70, 229, 0.15);
  transform: translateY(-2px);
}

.file-upload-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Ensure file upload groups in form-row have equal width */
.form-row .file-upload-group {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.form-row .file-upload-group .file-upload-wrapper {
  flex: 1;
  display: flex;
}

.form-row .file-upload-group .file-upload-label {
  flex: 1;
  height: 100%;
  min-height: 180px;
}

.file-upload-wrapper {
  position: relative;
  width: 100%;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  height: 180px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.file-upload-label i {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.file-upload-label span {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.file-upload-label small {
  color: var(--gray);
  font-size: 12px;
}

.file-upload-wrapper:hover .file-upload-label {
  border-color: var(--secondary-color);
  background: rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.file-upload-wrapper:hover .file-upload-label i {
  transform: scale(1.1);
}

.file-upload-wrapper input[type="file"]:focus + .file-upload-label {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.file-upload-wrapper input[type="file"]:valid + .file-upload-label {
  border-color: var(--success-color);
  background: rgba(16, 185, 129, 0.1);
}

.file-upload-wrapper input[type="file"]:valid + .file-upload-label i {
  color: var(--success-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
}

.form-actions .btn {
  min-width: 150px;
}

@media (max-width: 768px) {
  .form-container {
    padding: 25px 20px;
    border-radius: 16px;
  }

  .form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
  }

  .form-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .form-section-icon {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }

  .form-section-header h2 {
    font-size: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-row .file-upload-group {
    width: 100%;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
  }

  /* Mobile-friendly select dropdown - compact size */
  .form-group select {
    padding: 10px 35px 10px 12px;
    background-position: right 12px center;
    background-size: 10px;
    font-size: 14px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(79, 70, 229, 0.1);
    height: auto;
    line-height: 1.4;
  }

  .form-group select:active,
  .form-group select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
  }

  .form-group select option {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
  }

  .form-actions {
    flex-direction: column;
  margin-top: 30px;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .file-upload-label {
    padding: 30px 15px;
    height: 150px;
    min-height: 150px;
  }

  .form-row .file-upload-group .file-upload-label {
    height: 150px;
    min-height: 150px;
  }

  .file-upload-label i {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .file-upload-label span {
    font-size: 14px;
  }

  .file-upload-label small {
    font-size: 11px;
  }
}

/* Vehicle Photos Upload Section */
.vehicle-photos-group {
  width: 100%;
  margin-bottom: 25px;
}

.vehicle-photos-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 16px;
}

.vehicle-photos-group label i {
  color: var(--secondary-color);
  font-size: 20px;
}

.photo-help-text {
  display: block;
  margin-top: 10px;
  color: var(--gray);
  font-size: 13px;
  font-style: italic;
}

/* Multiple Upload Area */
.vehicle-photos-upload-wrapper {
  margin-bottom: 20px;
}

.vehicle-photos-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 150px;
}

.vehicle-photos-upload-area:hover {
  border-color: var(--secondary-color);
  background: rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.vehicle-photos-upload-area.drag-over {
  border-color: var(--secondary-color);
  background: rgba(79, 70, 229, 0.15);
  transform: scale(1.02);
}

.vehicle-photos-upload-area i {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.vehicle-photos-upload-area:hover i {
  transform: scale(1.1);
}

.vehicle-photos-upload-area span {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  display: block;
}

.vehicle-photos-upload-area small {
  color: var(--gray);
  font-size: 12px;
}

.vehicle-photos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 15px;
}

.photo-upload-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(79, 70, 229, 0.05);
  border: 2px dashed var(--border-color);
  transition: all 0.3s ease;
}

.photo-upload-item:hover {
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.photo-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.photo-upload-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  z-index: 1;
}

.photo-upload-preview i {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.photo-upload-preview span {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.photo-upload-preview small {
  color: var(--gray);
  font-size: 11px;
}

.photo-upload-preview.has-image {
  padding: 0;
}

.photo-upload-preview.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-document {
  padding: 5px 12px;
  font-size: 12px;
  background: var(--danger-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.btn-remove-document:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-remove-document:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-remove-photo,
.btn-set-main {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.9);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-set-main {
  top: auto;
  bottom: 8px;
  right: 8px;
  background: rgba(79, 70, 229, 0.9);
  border-radius: 8px;
  width: auto;
  height: auto;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-remove-photo:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
}

.btn-set-main:hover {
  background: rgba(79, 70, 229, 1);
  transform: translateY(-2px);
}

.main-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.btn-add-photo {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .vehicle-photos-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .photo-upload-preview i {
    font-size: 28px;
  }
  
  .photo-upload-preview span {
    font-size: 12px;
  }
  
  .btn-set-main {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .main-badge {
    font-size: 10px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .vehicle-photos-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Button Styles */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

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

.btn-success:hover {
  background-color: #229954;
}

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

.btn-danger:hover {
  background-color: #c0392b;
}

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

.btn-info:hover {
  background-color: #138496;
}

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

.btn-warning:hover {
  background-color: #e67e22;
}

.btn-secondary {
  background-color: var(--gray);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--gray);
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Footer */
.main-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px;
  text-align: center;
  margin-top: auto;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
}

.footer-content p {
  margin: 5px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Search and Filter Section */
.search-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.12), 0 2px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: fadeInDown 0.6s ease-out;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

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

.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.search-form .form-group {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.search-form .form-group label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 6px;
  display: block;
  font-size: 13px;
  white-space: nowrap;
  line-height: 1.4;
}

.search-form .form-group input,
.search-form .form-group select {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(79, 70, 229, 0.15);
  transition: all 0.3s ease;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.search-form .form-group input:focus,
.search-form .form-group select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  background: var(--white);
}

/* Enhanced Search Input Wrapper */
.search-input-wrapper {
  display: flex;
  gap: 15px;
  align-items: stretch;
  width: 100%;
  flex-wrap: wrap;
}

/* Enhanced Search Input Group */
.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(79, 70, 229, 0.15);
  border-radius: 10px;
  padding: 0;
  transition: all 0.3s ease;
  overflow: visible;
  z-index: 100;
  isolation: isolate;
  box-sizing: border-box;
}

.search-input-group:focus-within {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  background: var(--white);
  transform: translateY(-2px);
}

.search-input-group i.fa-search {
  position: absolute;
  left: 18px;
  color: var(--gray);
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
  transition: all 0.3s ease;
}

.search-input-group:focus-within i.fa-search {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.search-input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px 14px 50px;
  font-size: 15px;
  background: transparent;
  color: var(--dark-color);
  width: 100%;
  font-weight: 500;
}

.search-input-group input::placeholder {
  color: var(--gray);
  opacity: 0.7;
  font-weight: 400;
}

.search-input-group input:focus {
  border: none;
  box-shadow: none;
  transform: none;
}

/* Clear Search Button */
.clear-search-btn {
  position: absolute;
  right: 12px;
  background: rgba(79, 70, 229, 0.1);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2;
  color: var(--primary-color);
}

.search-input-group:has(input:not(:placeholder-shown)) .clear-search-btn,
.search-input-group.has-value .clear-search-btn {
  opacity: 1;
  visibility: visible;
}

.clear-search-btn:hover {
  background: rgba(79, 70, 229, 0.2);
  transform: scale(1.1);
}

.clear-search-btn i {
  position: static;
  font-size: 12px;
  color: var(--primary-color);
  transform: none;
}

/* Search Submit Button */
.search-submit-btn {
  padding: 14px 28px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 120px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.search-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Live Search Suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(79, 70, 229, 0.1);
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1001;
  display: none;
  animation: fadeInDown 0.3s ease-out;
  width: 100%;
  box-sizing: border-box;
}

.search-suggestions.has-results {
  display: block;
}

.search-suggestion-item {
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(79, 70, 229, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-suggestion-item:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.search-suggestion-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.search-suggestion-item:hover {
  background: rgba(79, 70, 229, 0.08);
  transform: translateX(4px);
}

.search-suggestion-item.active {
  background: rgba(79, 70, 229, 0.12);
}

.suggestion-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.suggestion-vehicle-number {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 15px;
}

.suggestion-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-details {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestion-price {
  color: var(--success-color);
  font-weight: 600;
}

.search-suggestion-item mark {
  background-color: rgba(79, 70, 229, 0.2);
  color: var(--primary-color);
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
}

.search-form .form-group:last-child {
  display: flex;
  flex-direction: row;
  gap: 12px;
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin-top: 10px;
  z-index: 1;
  align-items: center;
}

@media (max-width: 768px) {
  .search-section {
    padding: 20px 18px;
    border-radius: 16px;
    margin-bottom: 25px;
  }

  .search-input-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  
  .search-input-group {
    min-width: 100%;
    width: 100%;
    overflow: visible;
    z-index: 100;
    isolation: isolate;
  }
  
  .search-input-group input {
    padding: 12px 15px 12px 45px;
    font-size: 14px;
  }
  
  .search-input-group i.fa-search {
    left: 15px;
    font-size: 16px;
  }
  
  .clear-search-btn {
    right: 10px;
    width: 26px;
    height: 26px;
  }
  
  .search-submit-btn {
    width: 100%;
    padding: 12px 20px;
  }

  .search-form {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .search-form .form-group:last-child {
    grid-column: 1;
    flex-direction: column;
    margin-top: 0;
  }

  .search-form .form-group:last-child .btn {
    width: 100%;
    justify-content: center;
  }

  .vehicle-card {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .vehicle-card-title h3 {
    font-size: 20px;
  }

  .vehicle-info-item i {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}

/* Vehicles List - Mobile Card View */
.vehicles-cards-container {
  display: none;
  gap: 20px;
}

.vehicle-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1), 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out backwards;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vehicle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.vehicle-card:hover::before {
  transform: scaleX(1);
}

.vehicle-card:nth-child(1) { animation-delay: 0.1s; }
.vehicle-card:nth-child(2) { animation-delay: 0.2s; }
.vehicle-card:nth-child(3) { animation-delay: 0.3s; }
.vehicle-card:nth-child(4) { animation-delay: 0.4s; }
.vehicle-card:nth-child(5) { animation-delay: 0.5s; }

.vehicle-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.2), 0 4px 20px rgba(0, 0, 0, 0.12);
  border-color: rgba(79, 70, 229, 0.3);
}

.vehicle-card-header {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(79, 70, 229, 0.1);
  position: relative;
}

.vehicle-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.vehicle-card-title h3 {
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vehicle-card-title h3 i {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.2));
}

.vehicle-brand-model {
  color: var(--gray);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.vehicle-card-body {
  margin-bottom: 20px;
}

.vehicle-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.vehicle-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vehicle-info-item i {
  color: var(--secondary-color);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.vehicle-card:hover .vehicle-info-item i {
  background: rgba(79, 70, 229, 0.15);
  transform: scale(1.1);
}

.vehicle-info-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-value {
  font-size: 15px;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.vehicle-card-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 2px solid rgba(79, 70, 229, 0.1);
}

.vehicle-card-footer .btn {
  flex: 1;
  min-width: 80px;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-buttons .btn {
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.action-buttons .btn i {
  margin-right: 4px;
}

.no-vehicles-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 2px dashed rgba(79, 70, 229, 0.2);
}

.no-vehicles-message i {
  color: rgba(79, 70, 229, 0.3);
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

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

.no-vehicles-message p {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--primary-color);
}

/* Vehicles Table Container - Prevent Horizontal Scroll */
.vehicles-table-container {
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
}

/* Responsive: Show cards on mobile, table on desktop */
@media (max-width: 768px) {
  .vehicles-table-container {
    display: none;
  }

  .vehicles-cards-container {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vehicle-info-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vehicle-card-footer {
    flex-direction: column;
    gap: 8px;
  }

  .vehicle-card-footer .btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  .btn-text {
    display: none;
  }

  .no-vehicles-message {
    padding: 40px 20px;
    border-radius: 16px;
  }

  .no-vehicles-message i {
    font-size: 48px;
    margin-bottom: 15px;
  }

  .no-vehicles-message p {
    font-size: 16px;
  }
}

@media (min-width: 769px) {
  .vehicles-cards-container {
    display: none;
  }

  .vehicles-table-container {
    display: block;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
}

/* Recent Section */
.recent-section {
  margin-top: 40px;
  animation: fadeIn 0.8s ease-in 0.3s backwards;
}

/* View Vehicle Page */
.vehicle-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.detail-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1), 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.5s ease-out backwards;
}

.detail-card:nth-child(1) { animation-delay: 0.1s; }
.detail-card:nth-child(2) { animation-delay: 0.2s; }
.detail-card:nth-child(3) { animation-delay: 0.3s; }
.detail-card:nth-child(4) { animation-delay: 0.4s; }

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
}

.detail-card h3 {
  color: var(--primary-color);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid;
  border-image: var(--gradient-secondary) 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-card h3 i {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 22px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(79, 70, 229, 0.1);
  transition: all 0.2s ease;
}

.detail-item:hover {
  background: rgba(79, 70, 229, 0.03);
  margin: 0 -10px;
  padding: 14px 10px;
  border-radius: 8px;
}

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

.detail-item strong {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 15px;
  min-width: 140px;
  flex-shrink: 0;
}

.detail-item span {
  color: var(--gray);
  text-align: right;
  font-size: 15px;
  word-break: break-word;
}

.document-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 2px solid rgba(79, 70, 229, 0.2);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.document-link:hover {
  color: var(--white);
  background: var(--gradient-secondary);
  border-color: var(--secondary-color);
  transform: translateX(4px) translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.document-link i {
  font-size: 16px;
}

.document-item {
  padding: 16px 0 !important;
  border-bottom: 2px solid rgba(79, 70, 229, 0.1) !important;
  margin-bottom: 0 !important;
}

.document-item:hover {
  background: rgba(79, 70, 229, 0.02) !important;
  margin: 0 -10px !important;
  padding: 16px 10px !important;
  border-radius: 8px !important;
}

.document-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 15px;
}

.document-item .document-link {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid;
  border-image: var(--gradient-secondary) 1;
}

.section-header h3 {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.expenses-section,
.documents-section {
  margin-top: 30px;
  grid-column: 1 / -1; /* Span full width */
}

.expenses-section h3,
.documents-section h3 {
  margin-bottom: 24px;
  padding-bottom: 14px;
}

.expenses-table-wrapper,
.documents-table-wrapper {
  overflow-x: hidden;
  overflow-y: visible;
  border-radius: 12px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
}

.section-action-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 2px solid rgba(79, 70, 229, 0.1);
}

.section-action-footer .btn {
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.section-action-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.no-data-message {
  padding: 40px 20px;
  color: var(--gray);
  font-size: 16px;
  font-style: italic;
  background: rgba(79, 70, 229, 0.03);
  border-radius: 12px;
  border: 2px dashed rgba(79, 70, 229, 0.2);
  margin-bottom: 24px;
  text-align: center;
}

.no-data-message i {
  display: block;
  margin-bottom: 15px;
  color: rgba(79, 70, 229, 0.3);
}

.no-data-message p {
  margin: 0;
}

/* Leasing Company Name */
.leasing-company-name {
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

.document-count-badge {
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

/* Documents Grid */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.document-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 14px;
  padding: 20px;
  border: 2px solid rgba(79, 70, 229, 0.1);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.document-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.document-card:hover::before {
  transform: scaleX(1);
}

.document-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
}

.document-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--gradient-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  margin-bottom: 5px;
}

.document-card-content {
  flex: 1;
}

.document-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.document-card-type {
  font-size: 13px;
  color: var(--secondary-color);
  font-weight: 600;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.document-card-date {
  font-size: 12px;
  color: var(--gray);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.document-card-date i {
  font-size: 11px;
}

.document-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(79, 70, 229, 0.1);
}

.document-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-width: 45px;
  transition: all 0.3s ease;
}

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

.document-card-actions .btn-primary {
  background: var(--gradient-secondary);
  border: none;
}

.document-card-actions .btn-primary:hover {
  background: var(--gradient-secondary);
  filter: brightness(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 25px 20px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .page-header {
    padding: 25px 20px;
  }
  
  .page-header h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .header-content {
    flex-wrap: wrap;
    padding: 15px 18px;
  }

  .logo {
    gap: 12px;
  }

  .logo-icon-wrapper {
    width: 70px;
    height: 70px;
  }

  .logo-icon-wrapper i.fa-car {
    font-size: 26px;
  }

  .logo-badge {
    width: 20px;
    height: 20px;
    top: -6px;
    right: -6px;
  }

  .logo-badge i {
    font-size: 9px;
  }

  .logo-name {
    font-size: 20px;
  }

  .logo-tagline {
    font-size: 10px;
  }

  .user-menu {
    width: 100%;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  .user-menu.mobile-active {
    max-height: 300px;
    opacity: 1;
  }

  /* Mobile responsive logout button */
  .btn-logout {
    flex: 1;
    min-width: 100px;
    padding: 10px 15px;
    justify-content: center;
    font-size: 14px;
  }

  .btn-logout .menu-text {
    display: inline;
  }

  .btn-dashboard {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 10px 15px;
  }

  .profile-dropdown {
    flex: 1;
    min-width: 150px;
  }

  .profile-toggle {
    padding: 10px 15px;
    width: 100%;
    justify-content: space-between;
  }

  .profile-info {
    max-width: 120px;
    flex: 1;
  }

  .profile-name {
    font-size: 14px;
  }

  .profile-role {
    font-size: 10px;
  }

  .btn-logout {
    flex: 1;
    min-width: 100px;
    padding: 10px 15px;
    justify-content: center;
    font-size: 14px;
  }

  .btn-logout .menu-text {
    display: inline;
  }

  .profile-menu {
    min-width: 180px;
    right: 0;
    left: auto;
  }

  .profile-menu-header {
    padding: 12px 15px;
  }

  .profile-menu-user-info strong {
    font-size: 14px;
  }

  .profile-menu-role {
    font-size: 11px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 18px 15px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .stat-content {
    width: 100%;
  }

  .stat-content h3 {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .stat-content p {
    font-size: 11px;
  }

  .nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .nav-card {
    padding: 20px 15px;
    gap: 12px;
  }

  .nav-icon {
    width: 56px;
    height: 56px;
    font-size: 26px;
    border-radius: 14px;
  }

  .nav-card h3 {
    font-size: 16px;
  }

  .nav-card p {
    font-size: 11px;
  }

  .page-header {
    padding: 20px 15px;
  }

  .page-header h1 {
    font-size: 28px;
    flex-wrap: wrap;
  }

  .page-header p {
    font-size: 16px;
  }

  .main-navigation h2,
  .recent-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 15px 12px;
  }

  .table-responsive {
    border-radius: 12px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .data-table th {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px 14px;
    flex-direction: row;
    text-align: left;
    min-height: 80px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    flex-shrink: 0;
  }

  .stat-content h3 {
    font-size: 20px;
  }

  .stat-content p {
    font-size: 10px;
  }

  .nav-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-card {
    padding: 20px 18px;
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 15px;
    min-height: 80px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
    flex-shrink: 0;
  }

  .nav-card h3 {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .nav-card p {
    font-size: 12px;
    margin: 0;
  }

  .page-header {
    padding: 18px 12px;
  }

  .page-header h1 {
    font-size: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .page-header h1 i {
    font-size: 22px;
  }

  .page-header p {
    font-size: 14px;
  }

  /* Extra small mobile - Compact select dropdown */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 9px 11px;
    font-size: 13px;
  }

  .form-group select {
    padding: 9px 32px 9px 11px;
    background-position: right 11px center;
    background-size: 9px;
    font-size: 13px;
  }

  .form-group select option {
    padding: 8px 11px;
    font-size: 13px;
  }

  .dashboard-body {
    background-attachment: scroll;
  }

  .dashboard-body::before {
    background-attachment: scroll;
  }

  .login-body {
    background-attachment: scroll;
  }

  .login-body::before,
  .login-body::after {
    background-attachment: scroll;
  }

  .login-container {
    padding: 15px;
  }

  .login-box {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .login-logo-wrapper {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  
  .login-logo-img {
    width: 150px;
    height: 150px;
  }

  .login-logo-wrapper i.fa-car {
    font-size: 32px;
  }

  .login-logo-badge {
    width: 22px;
    height: 22px;
    top: -7px;
    right: -7px;
  }

  .login-header h1 {
    font-size: 26px;
  }

  .login-header p {
    font-size: 13px;
  }

  .login-form .form-group {
    margin-bottom: 20px;
  }

  .login-form input {
    padding: 12px 15px;
    font-size: 15px;
  }

  .btn-primary {
    padding: 14px 20px;
    font-size: 16px;
  }

  .container {
    padding: 12px 10px;
  }

  .main-navigation h2,
  .recent-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .main-navigation h2 i,
  .recent-section h2 i {
    font-size: 18px;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 6px;
    font-size: 11px;
  }

  .data-table th {
    font-size: 10px;
    padding: 10px 6px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
  }

  .logo {
    gap: 10px;
  }

  .logo-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .logo-icon-wrapper i.fa-car {
    font-size: 22px;
  }

  .logo-badge {
    width: 18px;
    height: 18px;
    top: -5px;
    right: -5px;
  }

  .logo-badge i {
    font-size: 8px;
  }

  .logo-name {
    font-size: 18px;
  }

  .logo-tagline {
    font-size: 9px;
  }

  .main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
}

@media (max-width: 360px) {
  .stat-card {
    padding: 14px 12px;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .stat-content h3 {
    font-size: 18px;
  }

  .nav-card {
    padding: 18px 15px;
  }

  .nav-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .nav-card h3 {
    font-size: 16px;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .vehicle-card {
    padding: 18px 15px;
  }

  .vehicle-card-title h3 {
    font-size: 18px;
  }

  .vehicle-brand-model {
    font-size: 14px;
  }

  .info-value {
    font-size: 13px;
  }

  .btn-text-header {
    display: none;
  }

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

  .page-header .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Vehicle Photo Preview Styles */
.vehicle-photo-preview {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.vehicle-photo-preview:hover {
  border-color: var(--secondary-color);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.vehicle-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.vehicle-card-image {
  width: 100%;
  height: 200px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin-bottom: 15px;
  background: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--border-color);
}

.vehicle-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-card-image img {
  transform: scale(1.05);
}

/* Vehicle Photos Gallery */
.vehicle-photos-section {
  margin-bottom: 30px;
  grid-column: 1 / -1; /* Span full width */
}

.vehicle-photos-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photo-count-badge {
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.vehicle-photos-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.vehicle-photo-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--border-color);
  background: var(--light-color);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vehicle-photo-item:hover {
  border-color: var(--secondary-color);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.25);
}

.vehicle-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vehicle-photo-item:hover img {
  transform: scale(1.1);
}

.vehicle-photo-item.main-photo {
  border-color: var(--warning-color);
  border-width: 4px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.photo-main-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.photo-main-badge i {
  font-size: 11px;
}

.photo-number-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 2;
}

/* Photo Modal */
.photo-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.photo-modal-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
}

.photo-modal-content {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease;
}

.photo-modal-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--white);
  font-size: 42px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.photo-modal-close:hover {
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.photo-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.photo-modal-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.photo-modal-prev {
  left: 30px;
}

.photo-modal-next {
  right: 30px;
}

.photo-modal-info {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  z-index: 10001;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive Photo Styles */
@media (max-width: 1024px) {
  .vehicle-details {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .detail-card {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .vehicle-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .detail-card {
    padding: 20px;
    border-radius: 14px;
  }
  
  .detail-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
  
  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 0;
  }
  
  .detail-item strong {
    min-width: auto;
    margin-bottom: 4px;
  }
  
  .detail-item span {
    text-align: left;
    width: 100%;
  }
  
  .vehicle-photo-preview {
    width: 60px;
    height: 45px;
  }
  
  .vehicle-card-image {
    height: 180px;
  }
  
  .vehicle-photos-gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }
  
  .photo-modal-wrapper {
    padding: 40px 20px;
  }
  
  .photo-modal-content {
    max-width: 100%;
    max-height: calc(100vh - 120px);
  }
  
  .photo-modal-close {
    top: 15px;
    right: 20px;
    font-size: 32px;
    width: 45px;
    height: 45px;
  }
  
  .photo-modal-nav {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  
  .photo-modal-prev {
    left: 15px;
  }
  
  .photo-modal-next {
    right: 15px;
  }
  
  .photo-modal-info {
    bottom: 20px;
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .vehicle-details {
    gap: 18px;
  }
  
  .detail-card {
    padding: 18px;
    border-radius: 12px;
  }
  
  .detail-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
  }
  
  .detail-item {
    padding: 10px 0;
    font-size: 14px;
  }
  
  .vehicle-photo-preview {
    width: 50px;
    height: 38px;
  }
  
  .vehicle-card-image {
    height: 160px;
  }
  
  .vehicle-photos-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .photo-count-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .photo-main-badge {
    font-size: 11px;
    padding: 6px 10px;
    top: 8px;
    right: 8px;
  }
  
  .photo-number-badge {
    font-size: 11px;
    padding: 5px 10px;
    bottom: 8px;
    left: 8px;
  }
  
  .photo-modal-wrapper {
    padding: 20px 10px;
  }
  
  .photo-modal-nav {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .photo-modal-prev {
    left: 10px;
  }
  
  .photo-modal-next {
    right: 10px;
  }
  
  .photo-modal-info {
    bottom: 15px;
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .document-card {
    padding: 18px;
  }
  
  .document-card-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .document-card-title {
    font-size: 15px;
  }
  
  .document-card-type {
    font-size: 12px;
  }
  
  .document-card-date {
    font-size: 11px;
  }
  
  .leasing-company-name {
    font-size: 15px !important;
  }
  
  .document-count-badge {
    font-size: 11px;
    padding: 3px 10px;
  }
}

/**
 * Mobile Responsive Enhancements
 * Additional CSS for better mobile experience across all pages
 */

/* Global Mobile Improvements */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 15px 10px !important;
        max-width: 100% !important;
    }
    
    /* Typography */
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    .btn-sm {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 15px !important;
    }
    
    .form-group label {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
    }
    
    /* Tables - Convert to cards on mobile */
    .data-table {
        display: none !important;
    }
    
    .table-responsive {
        overflow-x: visible !important;
    }
    
    /* Cards */
    .card,
    .detail-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    /* Navigation */
    .page-header {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .page-header-title h1 {
        font-size: 1.5rem !important;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Search sections */
    .search-section {
        padding: 15px !important;
    }
    
    .search-form {
        grid-template-columns: 1fr !important;
    }
    
    /* Action buttons */
    .action-buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .action-buttons .btn {
        width: 100% !important;
    }
    
    /* Modals */
    .modal {
        padding: 15px !important;
    }
    
    .modal-content {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
    
    /* Badges */
    .badge {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
    
    /* Alerts */
    .alert {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .container {
        padding: 10px 8px !important;
    }
    
    h1 {
        font-size: 1.3rem !important;
    }
    
    h2 {
        font-size: 1.2rem !important;
    }
    
    h3 {
        font-size: 1rem !important;
    }
    
    .btn {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    /* Smaller text */
    .text-small {
        font-size: 12px !important;
    }
    
    /* Compact spacing */
    .mb-3 {
        margin-bottom: 15px !important;
    }
    
    .mt-3 {
        margin-top: 15px !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    a, button, input[type="button"], input[type="submit"] {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .btn-logout,
    .profile-toggle,
    .btn-dashboard {
        min-height: 44px !important;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none !important;
    }
    
    /* Better spacing for touch */
    .form-group {
        margin-bottom: 20px !important;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding: 10px !important;
    }
    
    .page-header {
        padding: 10px !important;
        margin-bottom: 15px !important;
    }
}

/* Print styles */
@media print {
    .btn,
    .action-buttons,
    .filter-bar,
    .search-section {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor !important;
    }
    
    .card,
    .detail-card {
        border: 2px solid #000 !important;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}
/**
 * Mobile Responsive Enhancements
 * Additional CSS for better mobile experience across all pages
 */

/* Global Mobile Improvements */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 15px 10px !important;
        max-width: 100% !important;
    }
    
    /* Typography */
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    .btn-sm {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 15px !important;
    }
    
    .form-group label {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
    }
    
    /* Tables - Convert to cards on mobile */
    .data-table {
        display: none !important;
    }
    
    .table-responsive {
        overflow-x: visible !important;
    }
    
    /* Cards */
    .card,
    .detail-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    /* Navigation */
    .page-header {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .page-header-title h1 {
        font-size: 1.5rem !important;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Search sections */
    .search-section {
        padding: 15px !important;
    }
    
    .search-form {
        grid-template-columns: 1fr !important;
    }
    
    /* Action buttons */
    .action-buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .action-buttons .btn {
        width: 100% !important;
    }
    
    /* Modals */
    .modal {
        padding: 15px !important;
    }
    
    .modal-content {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
    
    /* Badges */
    .badge {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
    
    /* Alerts */
    .alert {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .container {
        padding: 10px 8px !important;
    }
    
    h1 {
        font-size: 1.3rem !important;
    }
    
    h2 {
        font-size: 1.2rem !important;
    }
    
    h3 {
        font-size: 1rem !important;
    }
    
    .btn {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    /* Smaller text */
    .text-small {
        font-size: 12px !important;
    }
    
    /* Compact spacing */
    .mb-3 {
        margin-bottom: 15px !important;
    }
    
    .mt-3 {
        margin-top: 15px !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    a, button, input[type="button"], input[type="submit"] {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .btn-logout,
    .profile-toggle,
    .btn-dashboard {
        min-height: 44px !important;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none !important;
    }
    
    /* Better spacing for touch */
    .form-group {
        margin-bottom: 20px !important;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding: 10px !important;
    }
    
    .page-header {
        padding: 10px !important;
        margin-bottom: 15px !important;
    }
}

/* Print styles */
@media print {
    .btn,
    .action-buttons,
    .filter-bar,
    .search-section {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor !important;
    }
    
    .card,
    .detail-card {
        border: 2px solid #000 !important;
    }
}

/* Prevent horizontal scrollbar globally - ensure no element causes overflow */
* {
    max-width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Ensure containers don't overflow and maintain consistent width */
.container,
.page-header,
.search-section,
.table-responsive,
.vehicles-table-container,
.data-table,
.detail-card,
.form-container {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure all pages use same container width - consistent across all pages */
.container {
    max-width: 1000px !important;
}

.dashboard-body .container,
.login-container {
    max-width: 1000px;
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

