/* Modern Pechhulp Form Styles - Light Mode */
.pechhulp-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1f293b;
}

/* Map Styling - Light Mode */
.pechhulp-map {
  width: 100%;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #e5e7eb;
  position: relative;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Form Sections - Light Mode */
.form-section {
    background: rgb(255 255 255);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgb(255 255 255);
}

.form-section h3 {
  color: #1f293b;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.form-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Headers */
.pechhulp-form h3 {
  color: #1e293b;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}

.pechhulp-form h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

/* Form Labels */
.pechhulp-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Inputs */
.pechhulp-form input,
.pechhulp-form select,
.pechhulp-form textarea {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.pechhulp-form input:focus,
.pechhulp-form select:focus,
.pechhulp-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.pechhulp-form input::placeholder,
.pechhulp-form textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* Buttons */
.pechhulp-form button {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.pechhulp-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.pechhulp-form button:hover::before {
  left: 100%;
}

.pechhulp-form button[data-back] {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
  margin-right: 12px;
}

.pechhulp-form button[data-back]:hover {
  background: linear-gradient(135deg, #4b5563, #374151);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
}

.pechhulp-form button[data-next] {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
}

.pechhulp-form button[data-next]:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Kenteken Check Button */
#pechhulp-kenteken-check {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  margin-top: 8px;
  margin-bottom: 16px;
  width: auto;
  padding: 12px 24px;
  font-size: 14px;
}

#pechhulp-kenteken-check:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

#pechhulp-kenteken-check:disabled {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Vehicle Info Display */
#pechhulp-vehicle-info,
#pechhulp-manual-vehicle-info {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #065f46;
  animation: fadeInUp 0.5s ease-out;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

#pechhulp-vehicle-info strong,
#pechhulp-manual-vehicle-info strong {
  color: #047857;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

#pechhulp-vehicle-info h4,
#pechhulp-manual-vehicle-info h4 {
  color: #047857 !important;
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
}

#pechhulp-vehicle-info p,
#pechhulp-manual-vehicle-info p {
  color: #065f46 !important;
  margin: 6px 0;
}

/* Vehicle Error Messages */
.vehicle-error {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  color: #991b1b;
  font-weight: 500;
  font-size: 14px;
  animation: fadeInUp 0.5s ease-out;
}

/* Price Breakdown */
#pechhulp-price-breakdown {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

#pechhulp-price-breakdown h4 {
  margin: 0 0 16px;
  color: #92400e;
  font-weight: 600;
  font-size: 18px;
}

#pechhulp-price-breakdown div {
  margin: 8px 0;
  color: #92400e;
  font-weight: 500;
  font-size: 14px;
}

#pechhulp-price-total {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #78350f !important;
  border-top: 2px solid #f59e0b;
  padding-top: 12px;
  margin-top: 12px !important;
}

/* Error Messages */
.error-message {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  color: #991b1b;
  font-weight: 500;
  font-size: 14px;
  animation: fadeInUp 0.5s ease-out;
}

/* Address Input Group with GPS */
.address-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
}
.gps-input-btn{
  display: none !important;
}
.gps-input-btn {
  position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: #fff;
    margin-top: 15px;
    margin-left: 15px;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    padding: 1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.gps-input-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.gps-input-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.gps-input-btn:disabled {
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

.geocode-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px !important;
  margin: 5px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.geocode-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.geocode-btn:active {
  transform: translateY(0);
}

.kenteken-check-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.kenteken-check-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.kenteken-check-btn:disabled {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ETA Display */
#pechhulp-eta {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  color: #1e40af;
  font-weight: 600;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

/* Busy State */
.pechhulp-busy {
  padding: 20px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  color: #92400e;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

/* Offline State */
.pechhulp-offline {
  padding: 20px;
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  border: 2px solid #ef4444;
  border-radius: 12px;
  color: #991b1b;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

/* Modern Submit Button */
.pechhulp-cta {
  display: inline-block;
  padding: 18px 36px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.pechhulp-cta::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.6s;
}

.pechhulp-cta:hover::before {
  left: 100%;
}

.pechhulp-cta:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4); 
  background: linear-gradient(135deg, #059669, #047857);
}

.pechhulp-cta:active { 
  transform: translateY(-1px); 
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.pechhulp-cta[disabled], .pechhulp-cta.disabled { 
  opacity: 0.6; 
  cursor: not-allowed; 
  transform: none; 
  box-shadow: none; 
  background: linear-gradient(135deg, #9ca3af, #6b7280);
}

/* Tracking Animation */
.pechhulp-tracking-animation { 
  text-align: center; 
  margin-bottom: 20px; 
}

.pechhulp-tracking-animation img { 
  max-width: 220px; 
  width: 40%; 
  height: auto; 
  display: inline-block; 
  animation: float 3s ease-in-out infinite; 
}

@keyframes float { 
  0% { transform: translateY(0); } 
  50% { transform: translateY(-6px); } 
  100% { transform: translateY(0); } 
}

/* Modal for complete flow */
.pechhulp-modal { 
  position: fixed; 
  inset: 0; 
  display: none; 
  align-items: center; 
  justify-content: center; 
  background: rgba(0, 0, 0, 0.5); 
  z-index: 9999; 
  backdrop-filter: blur(5px);
}

.pechhulp-modal .panel { 
  background: linear-gradient(135deg, #0e0e0e, #000000);
  padding: 30px; 
  border-radius: 20px; 
  width: 90%; 
  max-width: 520px; 
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); 
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pechhulp-modal .panel h3 { 
  margin-top: 0; 
  color: #e5e5e5;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.pechhulp-modal .panel textarea { 
  width: 100%; 
  min-height: 120px; 
  margin-bottom: 20px; 
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.pechhulp-modal .panel .actions { 
  text-align: right; 
}

/* Responsive Design */
@media (max-width: 768px) {
  .pechhulp-form {
    margin: 0 16px;
    padding: 20px;
    border-radius: 16px;
  }
  
  .pechhulp-form h3 {
    font-size: 20px;
  }
  
  .pechhulp-form button {
    width: fit-content;
    margin-bottom: 12px;
  }
  
  .pechhulp-form button[data-back] {
    margin-right: 0;
  }
  
  .pechhulp-map {
    height: 250px;
  }
}

/* Loading States */
.pechhulp-loading {
  position: relative;
  overflow: hidden;
}

.pechhulp-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

.worker-card {
    background: #212121;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    border-radius: 1rem;
    inline-size: max-content;
    padding: 1rem;
}

/* Modern Appointments List Styling - Dark Grey Default */
.appointments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
  padding: 20px;
}

.appointment-card {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.appointment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: 16px 16px 0 0;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.appointment-id {
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.status-nieuw {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
}

.status-bevestig {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.status-onderweg {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
}

.status-aangekomen {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
}

.status-afgerond {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  color: white;
}

/* Highlighted appointment card */
.pechhulp-worker-dashboard .appointment-card.highlighted {
  border: 2px solid #3b82f6 !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) !important;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.pechhulp-worker-dashboard .appointment-card.highlighted .card-header {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
}

.card-body {
  color: #e5e5e5;
}

.customer-name {
  font-size: 18px;
  font-weight: 700;
  color: #e5e5e5;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-name::before {
  content: '👤';
  font-size: 16px;
}

.problem {
  font-size: 14px;
  color: #b0b0b0;
  margin: 0 0 12px 0;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border-left: 3px solid #ef4444;
  font-weight: 500;
}

.contact-info {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.license-plate {
  font-size: 14px;
  color: #e5e5e5;
  margin: 0 0 8px 0;
  padding: 6px 10px;
  background: #000;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #fbbf24;
}

.appointment-card .card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.action-btn {
  background: linear-gradient(135deg, #1e40af, #374151);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn.small {
  padding: 6px 12px;
  font-size: 11px;
}

.action-btn.success {
  background: linear-gradient(135deg, #059669, #047857);
}

.action-btn.success:hover {
  background: linear-gradient(135deg, #047857, #059669);
}

.action-btn.warning {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.action-btn.warning:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.action-btn.danger {
  background: linear-gradient(135deg, #dc2626, #f87171);
}

.action-btn.danger:hover {
  background: linear-gradient(135deg, #dc2626, #f87171);
}

.address {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 8px 0;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
  font-weight: 500;
}

.address-section {
  margin: 12px 0;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-info {
  flex: 1;
  cursor: pointer;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
  font-weight: 500;
  font-size: 13px;
  color: #64748b;
  transition: all 0.2s ease;
}

.address-info:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.navigate-btn {
  background: linear-gradient(135deg, #000000, #000000);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  min-width: fit-content;
}

.navigate-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.navigate-btn:active {
  transform: translateY(0);
}

.navigate-icon {
  font-size: 14px;
}

.navigate-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .appointment-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  .card-body {
    color: #f1f5f9;
  }
  
  .customer-name {
    color: #f1f5f9;
  }
  
  .problem {
    color: #f1f5f9;
    background: rgba(239, 68, 68, 0.2);
    border-left-color: #ef4444;
  }
  
  .contact-info {
    color: #94a3b8;
  }
  
  .card-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
  
  .action-btn {
    color: white;
  }
  
  .address {
    color: #f1f5f9;
    background: rgba(59, 130, 246, 0.2);
    border-left-color: #3b82f6;
  }
}

/* Loading and empty states */
.loading-state, .empty-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #64748b;
  font-size: 16px;
}

.loading-state .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.loading-spinner-container .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-spinner-container p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.loading-spinner-container.review-body p {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 16px;
}

.review-text-section {
  margin: 20px 0;
}

.review-text-section textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.review-text-section textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.rating-stars {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.star-btn {
  background: none;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  font-size: 24px;
  color: #d1d5db;
  transition: all 0.2s;
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.star-btn:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  transform: scale(1.1);
}

.star-btn:active {
  transform: scale(0.95);
}

/* Refresh button animations */
.refresh-btn.spinning, .action-btn.spinning {
  animation: spin 1s linear infinite;
}

.refresh-btn:disabled, .action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.empty-state::before {
  content: '📋';
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.error-state::before {
  content: '❌';
  font-size: 48px;
  margin-bottom: 16px;
  color: #ef4444;
}

/* Comprehensive Dark Mode Dashboard Theme - Dark Grey */
body {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #e5e5e5;
}

/* Dashboard Header - IMPORTANT */
.pechhulp-worker-dashboard .dashboard-header {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 16px !important;
  padding: 24px 32px !important;
  margin-bottom: 5px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.pechhulp-worker-dashboard .dashboard-header h1 {
  color: #e5e5e5 !important;
  margin: 0 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.pechhulp-worker-dashboard .header-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

.pechhulp-worker-dashboard .header-info {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  font-size: 14px !important;
  color: #9ca3af !important;
  align-items: baseline;
}

.pechhulp-refresh-data {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 8px !important;
  padding: 8px !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  color: white !important;
  font-size: 16px !important;
}

.pechhulp-refresh-data:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.pechhulp-refresh-data:active {
  transform: translateY(0) !important;
}

.pechhulp-refresh-data.spinning .refresh-icon {
  animation: spin 1s linear infinite !important;
}

.pechhulp-refresh-data:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

.pechhulp-worker-dashboard .worker-name {
  font-weight: 600 !important;
  color: #e5e5e5 !important;
  font-size: 14px !important;
}

.pechhulp-worker-dashboard .current-time {
  font-size: 12px !important;
  color: #a0a0a0 !important;
  font-weight: 500 !important;
}

/* Stats Overview - IMPORTANT */
.pechhulp-worker-dashboard .stats-overview {
  background: rgb(26 26 26) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  margin-bottom: 5px !important;
  padding: 20px !important;
}

.pechhulp-worker-dashboard .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 5px !important;
}

.pechhulp-worker-dashboard .stat-card {
  display: flex !important;
  background: linear-gradient(135deg, #1a1a1a, #1a1a1a) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  color: #e5e5e5 !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pechhulp-worker-dashboard .stat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.pechhulp-worker-dashboard .stat-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

.pechhulp-worker-dashboard .stat-number {
  color: #ffffff !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  margin-bottom: 4px !important;
}

.pechhulp-worker-dashboard .stat-label {
  font-size: 14px !important;
  color: #a0a0a0 !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.pechhulp-worker-dashboard .stat-trend {
  font-size: 18px !important;
  color: #10b981 !important;
  font-weight: 600 !important;
}

.pechhulp-worker-dashboard .trend-indicator {
  animation: pulse 2s infinite !important;
}

.pechhulp-worker-dashboard .stat-icon {
  font-size: 16px !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #101010, #272727) !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
  margin-right: 5px !important;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Dashboard Content Layout */
.pechhulp-worker-dashboard .dashboard-content {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin-bottom: 5px !important;
}

/* Section Headers */
.pechhulp-worker-dashboard .section-header {
  background: rgb(26 26 26) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  margin-bottom: 16px !important;
}

.pechhulp-worker-dashboard .section-header h2 {
  color: #e5e5e5 !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Map Section */
.pechhulp-worker-dashboard .map-section {
  background: rgb(26 26 26) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  margin-bottom: 24px !important;
  overflow: hidden !important;
  height: fit-content;
}

.pechhulp-worker-dashboard .map-section.minimized .map-container {
  display: none !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  margin-bottom: 5px !important;
  overflow: hidden !important;
}

/* Workers Section */
.pechhulp-worker-dashboard .workers-section {
  background: rgba(45, 45, 45, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  max-height: 80px !important;
}

.pechhulp-worker-dashboard .workers-section.minimized {
  max-height: 80px !important;
}

.pechhulp-worker-dashboard .workers-section.expanded {
  max-height: 1000px !important;
}

.pechhulp-worker-dashboard .workers-section .section-header {
  cursor: pointer !important;
  position: relative !important;
}

.pechhulp-worker-dashboard .workers-section .section-header::after {
  content: '▼' !important;
  position: absolute !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transition: transform 0.3s ease !important;
  font-size: 16px !important;
  color: #e5e5e5 !important;
}

.pechhulp-worker-dashboard .map-section.minimized .section-header::after {
  transform: translateY(-50%) rotate(-90deg) !important;
}

.pechhulp-worker-dashboard .map-section .section-header {
  cursor: pointer !important;
  position: relative !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.pechhulp-worker-dashboard .map-section .map-controls {
  position: relative;
}

.pechhulp-worker-dashboard .map-section .map-controls::after {
  content: '▼' !important;
  position: absolute !important;
  left: 100% !important;
  margin-left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transition: transform 0.3s ease !important;
  font-size: 16px !important;
  color: #e5e5e5 !important;
}

.pechhulp-worker-dashboard .map-section.minimized .map-controls::after {
  transform: translateY(-50%) rotate(-90deg) !important;
}

.pechhulp-worker-dashboard .map-section .section-header h2 {
  position: relative !important;
  margin: 0 !important;
}

/* Map Container */
.pechhulp-worker-dashboard .map-container {
  background: #2d2d2d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative !important;
  height: 40vh !important;
}

#pechhulp-worker-map {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  z-index: 1;
filter: saturate(0.5);
}

.pechhulp-worker-dashboard .map-overlay {
  background: rgba(30, 30, 30, 0.9) !important;
  color: #e5e5e5 !important;
}

/* Main Container */
.pechhulp-worker-dashboard {
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 20px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;  min-height: 100vh !important;
  background: #101010;
}

/* Search Container */
.pechhulp-worker-dashboard .search-container {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.pechhulp-worker-dashboard .search-input {
  flex: 1 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e5e5e5 !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

.pechhulp-worker-dashboard .search-input:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.pechhulp-worker-dashboard .search-btn {
  padding: 10px 12px !important;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.pechhulp-worker-dashboard .search-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af) !important;
  transform: translateY(-1px) !important;
}

.pechhulp-worker-dashboard .refresh-btn-icon {
  padding: 10px !important;
  background: linear-gradient(135deg, #0073ce, #027db1) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  min-width: 40px !important;
  height: 40px !important;
}

.pechhulp-worker-dashboard .refresh-btn-icon:hover {
  transform: rotate(180deg) !important;
}
.pechhulp-worker-dashboard .appointments-container,
.pechhulp-worker-dashboard .workers-container {
  max-height: 1200px !important;
  overflow-y: auto !important;
}

.pechhulp-worker-dashboard .appointments-list,
.pechhulp-worker-dashboard .workers-list {
  padding: 0 !important;
}

/* Loading States */
.pechhulp-worker-dashboard .loading-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px !important;
  color: #a0a0a0 !important;
}

.pechhulp-worker-dashboard .loading-spinner {
  width: 32px !important;
  height: 32px !important;
  border: 3px solid rgba(255, 255, 255, 0.2) !important;
  border-top: 3px solid #3b82f6 !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
  margin-bottom: 16px !important;
}

/* Quick Actions */
.pechhulp-worker-dashboard .quick-actions {
  background: rgba(8, 8, 8, 0.8) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.pechhulp-worker-dashboard .quick-actions h3 {
  margin: 0 0 20px 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #e5e5e5 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.pechhulp-worker-dashboard .actions-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 12px !important;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .pechhulp-worker-dashboard {
    padding: 0px !important;
  }
  
  .pechhulp-worker-dashboard .header-content {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }
  
  .pechhulp-worker-dashboard .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  
  .pechhulp-worker-dashboard .section-header {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  
  .pechhulp-worker-dashboard .map-controls,
  .pechhulp-worker-dashboard .list-controls {
    justify-content: center !important;
  }
  
  .pechhulp-worker-dashboard .actions-grid {
    grid-template-columns: 1fr !important;
  }
}

.pechhulp-worker-dashboard .stat-number {
  color: #ffffff !important;
}
.pechhulp-worker-dashboard .stat-label {
  color: #a0a0a0 !important;
}

/* Enhanced Appointment Cards */
.pechhulp-worker-dashboard .appointment-card.enhanced {
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Greyed out expired appointments */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="verlopen"] {
  opacity: 0.4 !important;
  filter: grayscale(100%) !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="verlopen"] .action-btn:not(.edit-btn):not(.delete-btn) {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  transform: scale(0.95) !important;
  pointer-events: none !important;
}

/* Button overlay for disabled buttons */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="verlopen"] .card-actions {
  position: relative !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="verlopen"] .card-actions::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.7) !important;
  border-radius: 16px !important;
}

/* Allow edit and delete buttons for VERLOPEN status - MORE SPECIFIC */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="verlopen"] .card-actions .action-btn.edit-btn,
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="verlopen"] .card-actions .action-btn.delete-btn {
  opacity: 1 !important;
  cursor: pointer !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}

/* Disable other action buttons for VERLOPEN status - MORE SPECIFIC */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="verlopen"] .card-actions .action-btn:not(.edit-btn):not(.delete-btn) {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  transform: scale(0.95) !important;
  pointer-events: none !important;
}

/* Disable action buttons for WACHT OP BETALING status */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="wacht_op_betaling"] .action-btn:not(.delete-btn):not(.edit-btn) {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: scale(0.95) !important;
  pointer-events: none !important;
}

/* Allow edit and delete buttons for WACHT OP BETALING status */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="wacht_op_betaling"] .action-btn.edit-btn,
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="wacht_op_betaling"] .action-btn.delete-btn {
  opacity: 1 !important;
  cursor: pointer !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}

/* Grey header for completed appointments */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="afgerond"] .card-header {
  background: linear-gradient(135deg, #161616, #0c0c0c) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  filter: url();
}

/* Hide action buttons for completed/afgerond appointments */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="afgerond"] .action-btn.secondary,
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="afgerond"] .action-btn.warning,
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="afgerond"] .action-btn.success {
  display: none !important;
}

/* Fix AFGEROND button to use distinct color */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="afgerond"] .action-btn.success {
  background: linear-gradient(135deg, #83185a, #881950) !important;
  color: white !important;
}

/* Fix AANGEKOMEN button to use distinct color */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="aangekomen"] .action-btn.success {
  background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
  color: white !important;
}

/* Fix BEVESTIG button to use distinct color */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="bevestig"] .action-btn.primary {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
}

/* Fix ONDERWEG button to use distinct color */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="onderweg"] .action-btn.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: white !important;
}

/* Allow edit button for completed appointments */
.pechhulp-worker-dashboard .appointment-card.enhanced[data-status="afgerond"] .action-btn.edit-btn {
  display: inline-flex !important;
  opacity: 1 !important;
  cursor: pointer !important;
  transform: scale(1) !important;
}

/* Enhanced Card Header Structure */
.pechhulp-worker-dashboard .appointment-card.enhanced .header-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  flex: 1 !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .header-right {
  display: flex !important;
  align-items: center !important;
}

/* Appointment ID and Status */
.pechhulp-worker-dashboard .appointment-card.enhanced .appointment-id {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .id-badge {
  color: white !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}

/* Status Badges */
.pechhulp-worker-dashboard .appointment-card.enhanced .status-badge {
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .status-badge.status-nieuw {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .status-badge.status-onderweg {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: white !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .status-badge.status-wacht_op_betaling {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
  color: white !important;
  position: relative;
  overflow: hidden;
  padding: 6px 12px 6px 32px !important;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .status-badge.status-wacht_op_betaling::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: paymentSpinner 1s linear infinite !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .status-badge.status-wacht_op_betaling::after {
  display: none;
}

@keyframes paymentSpinner {
  0% { 
    transform: translateY(-50%) rotate(0deg); 
    border-top-color: white;
  }
  25% { 
    transform: translateY(-50%) rotate(90deg); 
    border-top-color: rgba(255, 255, 255, 0.8);
  }
  50% { 
    transform: translateY(-50%) rotate(180deg); 
    border-top-color: rgba(255, 255, 255, 0.6);
  }
  75% { 
    transform: translateY(-50%) rotate(270deg); 
    border-top-color: rgba(255, 255, 255, 0.8);
  }
  100% { 
    transform: translateY(-50%) rotate(360deg); 
    border-top-color: white;
  }
}

.pechhulp-worker-dashboard .appointment-card.enhanced .status-badge.status-aangekomen {
  background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
  color: white !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .status-badge.status-afgerond {
  background: linear-gradient(135deg, #172b1e, #000000) !important;
    color: #4effbe !important;
    border: 1px solid #40d09b;
}

/* Payment Icon Styling */
.payment-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  font-size: 14px;
  text-align: center;
  line-height: 1;
}

.payment-button .payment-icon {
  font-size: 16px;
  margin-right: 8px;
}

.action-btn .payment-icon {
  font-size: 18px;
  margin-right: 0;
}

/* Payment and Distance Info */
.pechhulp-worker-dashboard .appointment-card.enhanced .payment-info {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .distance-badge {
  background: #000 !important;
  color: white !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .amount-badge {
  background: #000 !important;
  color: #fff !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Mechanic Badge */
.pechhulp-worker-dashboard .appointment-card.enhanced .mechanic-badge {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05)) !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .mechanic-badge.unassigned {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05)) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .mechanic-avatar {
  font-size: 18px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .mechanic-name {
  color: #e5e5e5 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Enhanced Card Body */
.pechhulp-worker-dashboard .appointment-card.enhanced .card-body {
  padding: 24px !important;
}

/* Customer Section */
.pechhulp-worker-dashboard .appointment-card.enhanced .customer-section {
  margin-bottom: 20px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .customer-name {
  color: #f9fafb !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 0 8px 0 !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .problem {
  color: #d1d5db !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 0 16px 0 !important;
  padding: 12px !important;
  background: rgba(239, 68, 68, 0.05) !important;
  border-left: 3px solid #ef4444 !important;
  border-radius: 0 8px 8px 0 !important;
}

/* Contact Grid */
.pechhulp-worker-dashboard .appointment-card.enhanced .contact-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .contact-icon {
  font-size: 14px !important;
  opacity: 0.8 !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .contact-text {
  color: #e5e5e5 !important;
  font-size: 13px !important;
  word-break: break-word !important;
}

/* License Section */
.pechhulp-worker-dashboard .appointment-card.enhanced .license-section {
  margin-bottom: 16px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .license-plate {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05)) !important;
  border: 1px solid rgba(251, 191, 36, 0.2) !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .license-plate:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1)) !important;
  transform: scale(1.02) !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .license-icon {
  font-size: 14px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .license-text {
  color: #fbbf24 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Address Section */
.pechhulp-worker-dashboard .appointment-card.enhanced .address-section {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px !important;
  background: rgba(59, 130, 246, 0.05) !important;
  border: 1px solid rgba(59, 130, 246, 0.1) !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .address-icon {
  font-size: 14px !important;
  opacity: 0.8 !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .address-text {
  color: #e5e5e5 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

/* Timeline Section */
.pechhulp-worker-dashboard .appointment-card.enhanced .timeline-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 16px !important;
  margin-bottom: 20px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .timeline-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .timeline-item:last-child {
  margin-bottom: 0 !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .timeline-icon {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .timeline-icon.created {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .timeline-icon.updated {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .timeline-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .timeline-label {
  color: #9ca3af !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .timeline-date {
  color: #e5e5e5 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: block !important;
  margin-bottom: 2px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .timeline-time {
  color: #9ca3af !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  display: block !important;
}

/* Enhanced Card Actions */
.pechhulp-worker-dashboard .appointment-card.enhanced .card-actions {
  padding: 20px 24px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .action-btn {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex: 1 !important;
  min-width: 120px !important;
  justify-content: center !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .action-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .action-btn:active {
  transform: translateY(0) !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .action-btn.primary {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .action-btn.success {
  background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
  color: white !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .action-btn.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: white !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .action-btn.danger {
  background: linear-gradient(135deg, #000000, #000000) !important;
  color: white !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .action-btn.secondary {
  background: linear-gradient(135deg, #15191f, #15191f) !important;
  color: white !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .btn-icon {
  font-size: 12px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .btn-text {
  font-size: 11px !important;
}

.pechhulp-worker-dashboard .appointment-card.enhanced .deleted-indicator {
  color: #6b7280 !important;
  font-style: italic !important;
  font-size: 12px !important;
  padding: 8px 16px !important;
  background: rgba(107, 114, 128, 0.1) !important;
  border-radius: 6px !important;
}

/* Responsive Design for Enhanced Cards */
@media (max-width: 768px) {
  .pechhulp-worker-dashboard .appointment-card.enhanced .card-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  
  .pechhulp-worker-dashboard .appointment-card.enhanced .contact-grid {
    grid-template-columns: 1fr !important;
  }
  
  .pechhulp-worker-dashboard .appointment-card.enhanced .card-actions {
    flex-direction: column !important;
  }
  
  .pechhulp-worker-dashboard .appointment-card.enhanced .action-btn {
    min-width: auto !important;
  }
}

@media (max-width: 480px) {
  .pechhulp-worker-dashboard .appointment-card.enhanced {
    margin-bottom: 16px !important;
  }
  
  .pechhulp-worker-dashboard .appointment-card.enhanced .card-header,
  .pechhulp-worker-dashboard .appointment-card.enhanced .card-body {
    padding: 16px !important;
  }
  
  .pechhulp-worker-dashboard .appointment-card.enhanced .card-actions {
    padding: 16px !important;
  }
}

/* Enhanced Card Header */
.pechhulp-worker-dashboard .appointment-card.enhanced .card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  padding: 20px 24px !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.05)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  gap: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
  color: #e5e5e5 !important;
}

.pechhulp-worker-dashboard .worker-card .worker-name,
.pechhulp-worker-dashboard .worker-card .worker-contact {
  color: #e5e5e5 !important;
}

/* Dashboard Container */
.dashboard-content {
  min-height: 100vh;
}

/* Section Headers */
.section-header {
  background: rgba(45, 45, 45, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.section-header h2 {
  color: #e5e5e5;
  font-weight: 700;
  font-size: 1.5rem;
}

/* Map Section */
.map-section {
  background: rgba(45, 45, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
}

.map-controls {
  background: rgba(30, 30, 30, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-btn, .filter-select, .refresh-btn {
  color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
}

.map-btn:hover, .refresh-btn:hover {
  background: linear-gradient(135deg, #555555, #666666);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-select {
  background: #0a0a0a !important;
  color: #e5e5e5 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.filter-select option {
  background: #404040 !important;
  color: #e5e5e5 !important;
  padding: 8px 12px !important;
}

.filter-select:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

.filter-select:hover {
  background: linear-gradient(135deg, #555555, #666666) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Appointments Section */
.appointments-section {
  background: rgba(45, 45, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
}

/* Workers Section */
.workers-section {
  background: rgba(45, 45, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
}

/* Map Container */
.map-container {
  background: #2d2d2d;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-overlay {
  background: rgba(30, 30, 30, 0.9);
  color: #e5e5e5;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .pechhulp-worker-dashboard .dashboard-content {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .appointments-grid, .workers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0px;
  }
  
  .appointment-card, .worker-card {
    padding: 16px;
  }
  
  .card-body {
    flex-direction: column;
    text-align: center;
  }
  
  .worker-avatar img {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px auto;
  }
  
  .card-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .dashboard-content {
    padding: 12px;
  }
  
  .pechhulp-form {
    padding: 16px;
    border-radius: 12px;
  }
  
  .form-section {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .section-header h2 {
    font-size: 1.125rem;
  }
  
  .appointment-card, .worker-card {
    padding: 12px;
  }
  
  .worker-avatar img {
    width: 64px;
    height: 64px;
  }
  
  .action-btn.small {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Modern Mobile Touch Targets */
@media (hover: none) and (pointer: coarse) {
  .action-btn, .map-btn, .refresh-btn {
    min-height: 44px;
    min-width: 44px;
    font-size: 16px;
  }
  
  .card-actions {
    gap: 12px;
  }
  
  .appointment-card, .worker-card {
    margin-bottom: 8px;
  }
}

/* Dark Mode Loading States */
.loading-state, .empty-state, .error-state {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #94a3b8;
  padding: 40px 16px;
}

.loading-state .loading-spinner {
  border: 4px solid rgba(148, 163, 184, 0.2);
  border-top: 4px solid #3b82f6;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #454545, #4d4d4d);
    border-radius: 4px;
}
::-webkit-scrollbar-track {
    background: rgb(16 16 16);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
}

/* List Controls Enhancement */
.pechhulp-worker-dashboard .list-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.pechhulp-worker-dashboard .search-container {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 !important;
}

.pechhulp-worker-dashboard .search-input {
  flex: 1 !important;
  background: #101010 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  color: #e5e5e5 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}

.pechhulp-worker-dashboard .search-input:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  background: linear-gradient(135deg, #4a5568, #6b7280) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
  transform: translateY(-2px) !important;
}

.pechhulp-worker-dashboard .search-input::placeholder {
  color: #9ca3af !important;
  font-style: italic !important;
}

.pechhulp-worker-dashboard .search-btn {
  background: linear-gradient(135deg, #2d2d2d, #232323) !important;
  border: 1px solid rgb(45 45 45 / 30%) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  color: white !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  min-width: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pechhulp-worker-dashboard .search-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

.pechhulp-worker-dashboard .search-btn:active {
  transform: translateY(0) !important;
}

/* Modern Workers List Styling */
.workers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px;
}

.worker-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.worker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
  border-radius: 16px 16px 0 0;
}

.worker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.worker-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.worker-id {
  background: linear-gradient(135deg, #000000, #000000);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-online {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.status-offline {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.status-busy {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.status-away {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.worker-card .card-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: #1e293b;
}

.worker-avatar {
  flex-shrink: 0;
}

.worker-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.worker-card:hover .worker-avatar img {
  border-color: #10b981;
  transform: scale(1.05);
}

.worker-details {
  flex: 1;
  min-width: 0;
}

.worker-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.worker-name::before {
  content: '👷';
  font-size: 16px;
}

/* Mechanic Info */
.mechanic-info {
  font-size: 13px !important;
  color: #10b981 !important;
  margin: 8px 0 !important;
  padding: 8px 12px !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border-radius: 8px !important;
  border-left: 3px solid #10b981 !important;
}

/* RDW Data Modal */
#rdw-data-modal {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 9999 !important;
  backdrop-filter: blur(5px) !important;
}

#rdw-data-modal .panel {
  max-width: 600px !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  background: linear-gradient(135deg, #0e0e0e, #000000) !important;
  padding: 30px !important;
  border-radius: 20px !important;
  width: 90% !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.rdw-data-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 12px !important;
  margin-top: 16px !important;
  max-height: 60vh !important;
  overflow-y: auto !important;
}

.rdw-item {
  padding: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.rdw-item strong {
  color: #fbbf24 !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.rdw-item:not(:last-child) {
  margin-bottom: 8px !important;
}

/* Form Validation Styles */
.pechhulp-form input:invalid {
  border-color: #ff6363 !important;
}

.pechhulp-form input:valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.pechhulp-form select:invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.pechhulp-form select:valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* License Plate Link Styling */
.appointment-card.enhanced .license-plate {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #1e40af, #3730a3) !important;
  color: white !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.appointment-card.enhanced .license-plate:hover {
  background: linear-gradient(135deg, #3730a3, #4c1d95) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3) !important;
}

.appointment-card.enhanced .license-plate:active {
  transform: translateY(0) !important;
}

.appointment-card.enhanced .license-icon {
  font-size: 14px !important;
}

.appointment-card.enhanced .license-text {
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Drivable Status Styling */
.appointment-card.enhanced .drivable-status {
  background: rgb(6 6 6) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  margin: 8px 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.appointment-card.enhanced .drivable-status strong {
  color: #10b981 !important;
  display: block !important;
  margin-bottom: 4px !important;
}

/* Problem Section Styling */
.appointment-card.enhanced .problem-section {
  background: rgb(6 6 6) !important;
  border-radius: 8px !important;
  margin: 12px 0 !important;
  padding: 0.5rem;
}

.appointment-card.enhanced .problem-section h5 {
  color: #ef4342 !important;
  margin: 0 0 8px 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.appointment-card.enhanced .problem-section .problem-type {
  color: #f74b4b !important;
  margin: 0 !important;
  font-size: 13px !important;
}

/* Tire Size Section Styling */
.appointment-card.enhanced .tire-size-section {
    background: #000 !important;
    border-radius: 8px !important;
    margin: 8px 0 !important;
    padding: 12px !important;
}

.appointment-card.enhanced .tire-size-section h5 {
  color: #d9d9d9 !important;
  margin: 0 0 8px 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.appointment-card.enhanced .tire-size-section .tire-size-info {
  color: #ff4545 !important;
    font-weight: 1000 !important;
    font-size: 16px !important;
    padding: 0;
    justify-self: center;
}

/* Notes Section Styling */
.appointment-card.enhanced .notes-section {
  background: rgb(6 6 6) !important;
  border: 1px solid rgba(19, 19, 19, 0.3) !important;
  border-radius: 8px !important;
  padding: 12px !important;
  margin: 12px 0 !important;
}

.appointment-card.enhanced .notes-section h5 {
  color: #e9e9e9 !important;
  margin: 0 0 8px 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.appointment-card.enhanced .notes-section .problem-notes {
  color: #e6e6e6 !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-style: italic !important;
}

/* Media Section Styling */
.appointment-card.enhanced .media-section {
  margin: 12px 0 !important;
}

.appointment-card.enhanced .media-btn {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
  color: white !important;
  border: none !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.appointment-card.enhanced .media-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

/* File Upload Area Styling */
.upload-area {
  border: 2px dashed #d1d5db !important;
  border-radius: 12px !important;
  padding: 24px !important;
  text-align: center !important;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
}

.upload-area:hover {
  border-color: #3b82f6 !important;
  background: linear-gradient(135deg, #f1f5f9, #e5e7eb) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

.upload-area.dragover {
  border-color: #10b981 !important;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
  transform: scale(1.02) !important;
}

.upload-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

.upload-icon {
  font-size: 48px !important;
  margin-bottom: 8px !important;
  animation: float 2s ease-in-out infinite !important;
}

.upload-text {
  text-align: center !important;
}

.upload-main {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.upload-sub {
  font-size: 12px !important;
  color: #6b7280 !important;
  line-height: 1.4 !important;
}

.upload-preview {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  gap: 12px !important;
  margin-top: 16px !important;
  min-height: 100px !important;
}

.upload-preview-item {
  position: relative !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #1f2937 !important;
  border: 1px solid #374151 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.upload-preview-item img {
  width: 100% !important;
  height: 120px !important;
  object-fit: cover !important;
  display: block !important;
}

.upload-preview-item video {
  width: 100% !important;
  height: 120px !important;
  object-fit: cover !important;
  display: block !important;
}

.upload-preview-item .remove-btn {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  background: rgba(239, 68, 68, 0.8) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.upload-preview-item:hover .remove-btn {
  opacity: 1 !important;
}

/* Media Button Styling */
.appointment-card.enhanced .media-section {
  margin: 8px 0 !important;
}

.appointment-card.enhanced .media-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.appointment-card.enhanced .media-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3) !important;
}

/* Media Modal Styling */
.media-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
}

.media-modal {
  background: linear-gradient(135deg, #1a1a1a, #1a1a1a) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  max-width: 800px !important;
  max-height: 80vh !important;
  width: 90% !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.media-modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 16px !important;
}

.media-modal-header h3 {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.media-modal-header .close-btn {
  background: rgba(239, 68, 68, 0.8) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  cursor: pointer !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}

.media-modal-header .close-btn:hover {
  background: rgba(220, 38, 38, 0.8) !important;
}

.media-modal-content {
  max-height: 60vh !important;
  overflow-y: auto !important;
}

.media-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 16px !important;
  padding: 16px !important;
}

.media-item {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.media-item img {
  width: 100% !important;
  height: 150px !important;
  object-fit: cover !important;
  display: block !important;
}

.media-item video {
  width: 100% !important;
  height: 150px !important;
  object-fit: cover !important;
  display: block !important;
}

.media-info {
  padding: 12px !important;
}

.media-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 4px !important;
  word-break: break-all !important;
}

.media-size {
  font-size: 12px !important;
  color: #6b7280 !important;
}

/* Live Map Card Styling */
.appointment-card.enhanced .map-section {
  margin: 8px 0 !important;
}

.appointment-card.enhanced .map-card {
  background: linear-gradient(135deg, #1a1a1a, #1a1a1a) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.appointment-card.enhanced .map-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 16px !important;
}

.appointment-card.enhanced .map-card-header h3 {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.appointment-card.enhanced .map-controls {
  display: flex !important;
  gap: 8px !important;
}

.appointment-card.enhanced .map-controls .refresh-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.appointment-card.enhanced .map-controls .refresh-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3) !important;
}

.appointment-card.enhanced .map-container {
  position: relative !important;
  height: 400px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #1f2937 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.appointment-card.enhanced .map-container #pechhulp-worker-map-live {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

/* Edit Modal Form Styles */
#edit-appointment-modal .panel {
    max-width: 600px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
}
#edit-appointment-form .form-group {
  margin-bottom: 20px !important;
}

#edit-appointment-form label {
  display: block !important;
  margin-bottom: 8px !important;
  color: #fbbf24 !important;
  font-weight: 600 !important;
}

#edit-appointment-form input,
#edit-appointment-form textarea,
#edit-appointment-form select {
  width: 100% !important;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  color: #e5e5e5 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
}

#edit-appointment-form input:focus,
#edit-appointment-form textarea:focus,
#edit-appointment-form select:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

#edit-appointment-form textarea {
  resize: vertical !important;
  min-height: 80px !important;
}

#edit-appointment-form select option {
  background: #404040 !important;
  color: #e5e5e5 !important;
}

.pechhulp-worker-dashboard * {
  background-color: transparent !important;
}

.pechhulp-worker-dashboard .dashboard-header,
.pechhulp-worker-dashboard .stats-overview,
.pechhulp-worker-dashboard .stat-card,
.pechhulp-worker-dashboard .appointment-card,
.pechhulp-worker-dashboard .worker-card,
.pechhulp-worker-dashboard .section-header,
.pechhulp-worker-dashboard .appointments-section,
.pechhulp-worker-dashboard .workers-section,
.pechhulp-worker-dashboard .map-section {
  background: linear-gradient(135deg, #101010, #161616) !important;;
  border: 1px solid rgb(77 77 77 / 10%) !important;
}

.pechhulp-worker-dashboard h1,
.pechhulp-worker-dashboard h2,
.pechhulp-worker-dashboard h3,
.pechhulp-worker-dashboard h4,
.pechhulp-worker-dashboard .stat-number,
.pechhulp-worker-dashboard .worker-name,
.pechhulp-worker-dashboard .customer-name {
  color: #ffffff !important;
}

.pechhulp-worker-dashboard p,
.pechhulp-worker-dashboard span,
.pechhulp-worker-dashboard .stat-label,
.pechhulp-worker-dashboard .contact-info {
  color: #e5e5e5 !important;
}

.worker-contact {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.worker-skills {
  font-size: 12px;
  color: #10b981;
  margin: 0 0 8px 0;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border-left: 3px solid #10b981;
  font-weight: 500;
}

.current-assignments {
  font-size: 13px;
  color: #1e293b;
  margin: 0 0 8px 0;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border-left: 3px solid #10b981;
  font-weight: 500;
}

.worker-card .card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}

/* Dark mode support for workers */
@media (prefers-color-scheme: dark) {
  .worker-card {
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .worker-card .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  .worker-card .card-body {
    color: #f1f5f9;
  }
  
  .worker-name {
    color: #f1f5f9;
  }
  
  .worker-contact {
    color: #94a3b8;
  }
  
  .current-assignments {
    color: #f1f5f9;
    background: rgba(16, 185, 129, 0.2);
    border-left-color: #10b981;
  }
  
  .worker-card .card-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
  }
  
  .worker-avatar img {
    border-color: #475569;
  }
  
  .worker-card:hover .worker-avatar img {
    border-color: #10b981;
  }
}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
    opacity: 1;
    background: #000 !important;
    color: #fff !important;
    border-radius: 1rem;
}
.leaflet-popup-content {
    margin: 13px 24px 13px 20px;
    line-height: 1.3;
    font-size: 13px;
    font-size: 1.08333em;
    min-height: 1px;
    color: #fff;
}
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
    background: #000 !important;
}

/* RDW Popup Overlay Styles */
.rdw-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.rdw-popup {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.rdw-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rdw-popup-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2em;
}

.rdw-popup-header .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.rdw-popup-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rdw-popup-content {
    color: #fff;
}

.vehicle-section {
    margin-bottom: 24px;
}

.vehicle-section h4 {
    margin: 0 0 12px 0;
    color: #fbbf24;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rdw-popup .data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.rdw-popup .data-item {
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rdw-popup .data-item .label {
    color: #9ca3af;
    font-size: 0.85em;
    display: block;
    margin-bottom: 2px;
}

.rdw-popup .data-item .value {
    color: #fff;
    font-weight: 500;
}

.leaflet-container {
    z-index: 0;
}

.status-badge.status-betaald {
    background: #5ab535 !important;
}

/* Review Modal - Hidden by default */
.review-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.review-modal.show {
  display: flex;
}

.review-panel {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.review-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
}

.review-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.review-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.review-body p {
  margin: 0 0 16px 0;
  color: #6b7280;
  font-size: 16px;
}

.rating-stars {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.star-btn {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #d1d5db;
  transition: all 0.2s ease;
  padding: 4px;
}

.star-btn:hover,
.star-btn.active {
  color: #fbbf24;
  transform: scale(1.1);
}

.review-text-section {
  margin-bottom: 20px;
}

.review-text-section label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
}

.review-text-section textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
}

.review-info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.review-field label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
}

.review-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.review-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.review-cancel-btn {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.review-cancel-btn:hover {
  background: #e5e7eb;
}

.review-submit-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.review-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.review-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Media Popup Dark Mode Styles */
.media-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.media-popup-content {
  background: #1a1a1a;
  color: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.3s ease-out;
}

.media-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.media-popup-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
}

.media-popup-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #cccccc;
  transition: color 0.2s ease;
  padding: 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-popup-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.media-popup-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.media-item {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.media-item img, .media-item video {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.media-caption {
  margin: 10px 0 0 0;
  font-size: 14px;
  color: #cccccc;
  text-align: center;
  font-weight: 500;
}

.fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.media-item:fullscreen {
  background: #000000;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.media-item:fullscreen img, .media-item:fullscreen video {
    max-width: 100% !important;
    max-height: 100% ! IMPORTANT;
    object-fit: contain ! IMPORTANT;
    width: 100% !important;
    height: 75% !important;
}

.media-item:fullscreen .media-caption {
  margin-top: 20px;
  color: white;
  font-size: 18px;
}

.media-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 10px auto;
}

.media-download-link:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}