/* ========================================
   ROOT VARIABLES
======================================= */
:root {
  --color-primary: #00ff85;
  --color-bg: #05150f;
  --color-card: #071a12;
  --color-dark: #04120d;
}

/* ========================================
   BASE LAYOUT
======================================= */
.booking-layout {
  display: flex;
  min-height: 100vh;
  background: #05150f;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   SIDEBAR (DESKTOP)
======================================= */
.sidebar {
  width: 260px;
  padding: 110px 20px;
  background: #04120d;
  border-right: 1px solid rgba(0,255,133,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 30px;
  color: var(--color-primary);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar nav a {
  padding: 16px 20px;
  border-radius: 12px;
  cursor: pointer;
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar nav a:hover {
  background: rgba(0,255,133,0.1);
  color: white;
  transform: translateX(8px);
}

.sidebar nav a.active {
  background: var(--color-primary);
  color: black;
  box-shadow: 0 8px 32px rgba(0,255,133,0.3);
  transform: translateX(8px);
}

.pro-card {
  background: #072017;
  padding: 20px;
  border-radius: 16px;
  margin-top: auto;
}

.pro-card button {
  margin-top: 10px;
  background: var(--color-primary);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  color: black;
  transition: all 0.3s ease;
}

.pro-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,255,133,0.4);
}

/* ========================================
   CONTENT AREA
======================================= */
.booking-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.location-label {
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.top-bar h4 {
  color: white;
  margin: 4px 0 0 0;
  font-size: 22px;
  font-weight: 700;
}

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

.user-info span {
  color: white;
  font-weight: 600;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid rgba(0,255,133,0.3);
}

.page-title {
  font-size: 2.5rem;
  margin: 30px 0 40px 0;
  font-weight: 800;
  background: linear-gradient(45deg, var(--color-primary), white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   TAB CONTENT SECTIONS
======================================= */
.dashboard-section, .rewards-section, .bookings-section, .settings-section {
  background: rgba(7, 32, 23, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,255,133,0.15);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* DATE SELECTOR */
.date-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.date {
  background: #072017;
  padding: 18px 16px;
  border-radius: 16px;
  text-align: center;
  min-width: 85px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.date:hover {
  background: rgba(0,255,133,0.1);
  border-color: rgba(0,255,133,0.3);
  transform: translateY(-4px);
}

.date.active {
  background: var(--color-primary);
  color: black;
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,255,133,0.3);
}

.date span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: inherit;
}

.date strong {
  font-size: 22px;
  font-weight: 800;
  display: block;
}

/* SLOT GRID */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.slot-card {
  background: #071a12;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(0,255,133,0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.slot-card:hover:not(.disabled) {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0,255,133,0.2);
  border-color: rgba(0,255,133,0.3);
}

.slot-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.time {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.slot-card h3 {
  color: white;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.slot-card p {
  color: #aaa;
  margin: 0 0 8px 0;
  font-size: 15px;
}

.availability span {
  font-size: 14px;
  color: #aaa;
  font-weight: 600;
  margin-bottom: 12px;
}

.progress {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress div {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #00cc6a);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.btn-primary, .btn-disabled {
  margin-top: auto;
  background: var(--color-primary);
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: black;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,255,133,0.4);
}

.btn-primary:disabled, .btn-disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  transform: none;
}

/* REWARDS SECTION */
.reward-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
  background: rgba(0,255,133,0.1);
  border-radius: 20px;
  border: 1px solid rgba(0,255,133,0.2);
}

.reward-points {
  text-align: center;
}

.points-big {
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(45deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.points-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin-top: 8px;
}

.reward-info p {
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

/* BOOKINGS SECTION */
.bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.booking-item {
  padding: 28px;
  background: rgba(7, 26, 18, 0.8);
  border-radius: 20px;
  border: 1px solid rgba(0,255,133,0.15);
  position: relative;
  transition: all 0.3s ease;
}

.booking-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,255,133,0.15);
}

.booking-time {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.booking-type {
  color: #FFD700;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.booking-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.booking-type-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-primary);
  color: black;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 60px 40px;
  color: rgba(255, 255, 255, 0.6);
}

.empty-state span {
  font-size: 24px;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
  color: white;
}

.empty-state p {
  margin-top: 8px;
  font-size: 16px;
}

/* FORMS */
.profile-form, .password-form {
  background: rgba(7, 32, 23, 0.6);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(0,255,133,0.15);
  margin-bottom: 24px;
}

.password-form h3 {
  color: white;
  margin: 0 0 24px 0;
  font-size: 22px;
  font-weight: 700;
}

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

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(0,255,133,0.2);
  border-radius: 16px;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0,255,133,0.15);
  background: rgba(255, 255, 255, 0.12);
}

/* ========================================
   MOBILE RESPONSIVE (0-768px)
======================================= */
@media (max-width: 768px) {
  .booking-layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    flex-direction: row;
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(0,255,133,0.1);
    justify-content: flex-start;
    gap: 12px;
  }
  
  .logo {
    display: none;
  }
  
  .sidebar nav {
    flex: 1;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 0;
  }
  
  .sidebar nav a {
    white-space: nowrap;
    padding: 14px 18px;
    min-width: 120px;
    flex-shrink: 0;
    font-size: 14px;
    text-align: center;
  }
  
  .pro-card {
    display: none;
  }
  
  .booking-content {
    padding: 20px 16px;
  }
  
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .page-title {
    font-size: 1.8rem;
    margin: 20px 0 28px 0;
  }
  
  .date-selector {
    gap: 10px;
  }
  
  .date {
    min-width: 70px;
    padding: 14px 10px;
  }
  
  .date strong {
    font-size: 18px;
  }
  
  .slot-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .slot-card {
    padding: 24px 20px;
  }
  
  .reward-card {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 28px 24px;
  }
  
  .points-big {
    font-size: 48px;
  }
  
  .bookings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .booking-item {
    padding: 24px 20px;
  }
  
  .dashboard-section, .rewards-section, .bookings-section, .settings-section {
    padding: 24px 20px;
    margin-bottom: 24px;
  }
  
  .profile-form, .password-form {
    padding: 24px 20px;
  }
}

/* ========================================
   TABLET (769-1200px)
======================================= */
@media (max-width: 1200px) and (min-width: 769px) {
  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bookings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sidebar {
    width: 220px;
  }
}

/* ========================================
   LARGE DESKTOP (1201px+)
======================================= */
@media (min-width: 1201px) {
  .slot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   CUSTOM SCROLLBAR
======================================= */
.booking-content::-webkit-scrollbar {
  width: 8px;
}

.booking-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

.booking-content::-webkit-scrollbar-thumb {
  background: rgba(0,255,133,0.4);
  border-radius: 4px;
}

.booking-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}
