/* Dashboard Styles */

.dashboard-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 100px 2rem 2rem;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.dashboard-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.dashboard-header p {
  color: #cccccc;
  font-size: 1.1rem;
}

.user-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.user-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--bg-dark);
}

.user-info h2 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.user-info p {
  color: #999;
  font-size: 0.9rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.dashboard-card {
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 217, 255, 0.3);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.dashboard-card h3 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dashboard-card p {
  color: #cccccc;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card-action {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), #0099cc);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 217, 255, 0.5);
}

/* Bookings Section */
.bookings-section {
  margin-top: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.section-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--text-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-card {
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s;
  position: relative;
}

@media (max-width: 768px) {
  .booking-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.booking-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.booking-icon {
  font-size: 2.5rem;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-details h3 {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.booking-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.booking-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cccccc;
  font-size: 0.95rem;
}

.booking-info-item span:first-child {
  color: var(--primary-color);
}

.booking-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.booking-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.booking-status {
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: bold;
  text-align: center;
  min-width: 120px;
}

.btn-cancel-booking {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  border: 2px solid #ff4444;
  color: #ff4444;
  white-space: nowrap;
}

.btn-cancel-booking:hover {
  background: #ff4444;
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

@media (max-width: 768px) {
  .booking-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.btn-cancel-booking {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  border: 2px solid #ff4444;
  color: #ff4444;
  white-space: nowrap;
}

.btn-cancel-booking:hover {
  background: #ff4444;
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

.status-pending {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 2px solid #ffd700;
}

.status-confirmed {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
  border: 2px solid #00ff88;
}

.status-completed {
  background: rgba(0, 217, 255, 0.2);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.status-cancelled {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
  border: 2px solid #ff4444;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(26, 26, 26, 0.5);
  border: 2px dashed var(--primary-color);
  border-radius: 20px;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.empty-state p {
  color: #999;
  margin-bottom: 2rem;
}

/* Loading State */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 217, 255, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Car Gallery Styles */
.car-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 217, 255, 0.4);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
}

.gallery-info {
  padding: 1.5rem;
}

.gallery-info h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.gallery-info p {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.gallery-date {
  color: var(--primary-color);
  font-size: 0.85rem;
}

.gallery-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-action-btn {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--text-light);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.gallery-action-btn:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
}

.gallery-action-btn.delete {
  border-color: #ff4444;
  color: #ff4444;
}

.gallery-action-btn.delete:hover {
  background: #ff4444;
  color: var(--text-light);
}

/* Upload Modal */
.upload-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.upload-modal.show {
  display: flex;
}

.upload-modal-content {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 217, 255, 0.4);
}

.upload-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.upload-modal-header h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0;
}

.close-modal-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal-btn:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: rotate(90deg);
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.upload-area {
  border: 3px dashed var(--primary-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(0, 217, 255, 0.05);
  position: relative;
}

.upload-area:hover {
  background: rgba(0, 217, 255, 0.1);
  border-color: var(--accent-color);
}

.upload-area.dragover {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--success);
}

.upload-placeholder {
  pointer-events: none;
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.upload-area p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.upload-area small {
  color: #999;
}

.upload-preview {
  position: relative;
}

.upload-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
}

.remove-preview-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  background: #ff4444;
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-preview-btn:hover {
  transform: scale(1.1);
  background: #ff0000;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-light);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 217, 255, 0.3);
  border-radius: 10px;
  padding: 0.8rem;
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.upload-progress {
  margin: 1rem 0;
}

.progress-bar {
  width: 100%;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--success));
  transition: width 0.3s;
  width: 0%;
}

#progressText {
  text-align: center;
  color: var(--text-light);
  font-weight: bold;
  margin-top: 0.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-actions button {
  flex: 1;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.modal-actions .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Image Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(0, 217, 255, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--primary-color);
  border: none;
  color: var(--bg-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header h1 {
    font-size: 2rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .booking-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .booking-icon {
    margin: 0 auto;
  }

  .booking-info {
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .dashboard-page {
    padding: 100px 1rem 1rem;
  }

  .user-welcome {
    flex-direction: column;
  }

  .booking-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

