/* ============================================
   Premium Dashboard Cards
   ============================================ */
.user-profile-details {
  background: white;
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border: 1px solid #edf2f7;
}

.user-profile-details .title h4 {
  color: var(--color-primary);
  /* Changed to primary dark blue */
  font-size: 1.5rem;
  font-weight: 800;
  /* Bolder */
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1rem;
}

/* Stat Cards */
.card-box {
  background: white;
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.card-box .card-info i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  background: rgba(59, 130, 246, 0.1);
  /* Light blue bg */
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.card-box .card-info h5 {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.card-box .card-info p {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  text-align: center;
}

/* ============================================
   NEW: Booking Card Layout (Replaces Table)
   ============================================ */
.booking-list-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* Increased gap */
}

.booking-card {
  background: white;
  border-radius: 12px;
  /* More rounded */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  /* Wider image and action */
  min-height: 200px;
}

.booking-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--color-accent);
}

/* Card Section 1: Visual */
.booking-card-visual {
  position: relative;
  overflow: hidden;
}

.booking-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.booking-card:hover .booking-card-image {
  transform: scale(1.05);
}

.booking-card-visual i {
  font-size: 4rem;
  color: #cbd5e1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: #f8fafc;
  width: 100%;
}

/* Card Section 2: Details */
.booking-card-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.booking-id {
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.booking-date {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.booking-card-details h5 {
  font-size: 1.25rem;
  color: var(--color-primary) !important;
  margin-bottom: 1.5rem !important;
}

.booking-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.info-item i {
  color: var(--color-accent);
  /* Blue icons */
  margin-top: 3px;
}

.info-item div {
  line-height: 1.4;
}

/* Card Section 3: Action/Price */
.booking-card-action {
  background: #f8fafc;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-left: 1px solid #e2e8f0;
  gap: 1.2rem;
}

.booking-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.booking-status {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Status Colors */
.status-complete {
  background: #dcfce7;
  color: #166534;
}

.status-pending {
  background: #fef9c3;
  color: #854d0e;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.btn-view-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-accent);
  /* Solid Blue */
  color: white;
  border: 1px solid var(--color-accent);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none !important;
  width: 100%;
}

.btn-view-details:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991px) {
  .booking-card {
    grid-template-columns: 1fr;
    grid-template-rows: 200px auto auto;
  }

  .booking-card-visual {
    display: block;
    /* Show image on mobile too! */
    min-height: 200px;
  }

  .booking-card-action {
    border-left: none;
    border-top: 1px solid var(--color-border);
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem;
  }

  .btn-view-details {
    width: auto;
  }
}

/* ============================================
   Modern Sidebar Styling (Explicit)
   ============================================ */
.user-sidebar {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
  padding: 2rem !important;
  border-radius: 16px;
  color: white;
  height: 100%;
  min-height: 600px;
}

.user-sidebar .user-profile-section {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-sidebar .user-avatar {
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  line-height: 80px;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.user-sidebar .user-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.user-sidebar .user-email {
  font-size: 0.85rem;
  color: #94a3b8;
}

.user-sidebar .links li {
  margin-bottom: 0.5rem;
  list-style: none;
}

.user-sidebar .links a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 15px;
  /* Added unit */
  border: 1px solid transparent;
  /* Added */
}

.user-sidebar .links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(4px);
}

.user-sidebar .links li.active-menu a {
  background: rgba(59, 130, 246, 0.15);
  /* Translucent Blue */
  color: #60a5fa;
  /* Lighter Blue Text */
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-weight: 600;
}

.user-sidebar .links a i {
  width: 24px;
  margin-right: 12px;
  font-size: 1.1rem;
  text-align: center;
}

.user-sidebar .links li.active-menu a i {
  color: #60a5fa;
}

/* Mobile Toggle Button */
.sidebar-toggle {
  display: none;
  /* Hidden on desktop */
  position: fixed;
  top: 15px;
  /* Adjusted to fit nicely */
  left: 15px;
  z-index: 99999;
  /* Super high z-index to overlay everything */
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-toggle:active {
  transform: scale(0.95);
}

/* ============================================
   NEW: Polished Booking Row (Reset Redesign)
   ============================================ */
.booking-rows-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-row {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.booking-row:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.booking-row-header {
  background: #f8fafc;
  padding: 12px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.booking-row-header .id {
  font-weight: 700;
  color: var(--color-secondary);
}

.booking-row-header .date {
  color: #64748b;
}

.booking-row-body {
  display: flex;
  padding: 20px;
  gap: 20px;
  align-items: center;
}

/* 1. Visual */
.booking-row-visual {
  width: 140px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.booking-row-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-row-visual i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #cbd5e1;
}

/* 2. Info */
.booking-row-info {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 15px;
  align-items: center;
}

.booking-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.booking-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #475569;
}

.booking-meta span i {
  color: var(--color-accent);
  width: 20px;
  text-align: center;
  margin-right: 4px;
}

/* 3. Price & Action */
.booking-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 150px;
  padding-left: 20px;
  border-left: 1px solid #f1f5f9;
}

.price-tag {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  color: #64748b;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #f1f5f9;
  color: var(--color-primary);
}

.btn-main {
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-main:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-1px);
}

/* Responsive for Row */
@media (max-width: 991px) {
  .booking-row-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-row-visual {
    width: 100%;
    height: 180px;
  }

  .booking-row-info {
    grid-template-columns: 1fr;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
  }

  .booking-row-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-left: none;
    padding-left: 0;
  }
}



/* ============================================
   Modern Form Styles
   ============================================ */
.modern-form-group {
  margin-bottom: var(--space-lg);
}

.modern-form-group label {
  display: block;
  color: var(--color-dark);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: 14px;
}

.modern-form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: var(--transition-fast);
  background: var(--color-white);
}

.modern-form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-btn {
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.modern-btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.modern-btn-success {
  background: var(--gradient-success);
  color: var(--color-white);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.4s ease-out;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
  .user-sidebar {
    position: fixed;
    left: -320px;
    /* Reduced width */
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 1000;
    /* Increased z-index */
    transition: var(--transition-base);
    border-radius: 0;
    overflow-y: auto;
  }

  .user-sidebar.active {
    left: 0;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.3);
  }

  .sidebar-toggle {
    display: block;
    /* Show on mobile */
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
  }

  .sidebar-overlay.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .card-box {
    padding: var(--space-lg);
  }

  .card-box .card-info p {
    font-size: 28px;
  }

  .user-profile-details {
    padding: var(--space-lg);
  }

  .booking-card {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 576px) {
  :root {
    --space-xl: 24px;
    --space-lg: 16px;
  }

  .card-box .card-info i {
    font-size: 36px;
  }

  .modern-btn {
    width: 100%;
    padding: 12px 24px;
  }
}