/* =====================================
   GLOBAL FIXES
===================================== */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #f6f7fb;
}

/* =====================================
   SIDEBAR
===================================== */

.sidebar {
  background: #ffffff;
  border-right: 1px solid #eee;
  border-radius: 20px;
  width: 20rem;
}

/* =====================================
   PROFILE IMAGE
===================================== */

.profile-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

/* =====================================
   NAV LINKS
===================================== */

.nav-link {
  color: #333;
  margin-bottom: 10px;
}

.nav-link.active {
  background: #f3f3f3;
  border-radius: 8px;
  font-weight: 600;
}

/* =====================================
   PROFILE CARD
===================================== */

.profile-card {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* =====================================
   BUTTONS
===================================== */

.btn-primary {
  background-color: #ff8c00;
  border: none;
}

.btn-primary:hover {
  background-color: #e67e00;
}

/* =====================================
   DASHBOARD RESPONSIVE EXTENSION
===================================== */

/* Tablet & Mobile */
@media (max-width: 991px) {

  /* 🔴 CRITICAL: sidebar becomes off-canvas */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 20rem;
    max-width: 85%;
    z-index: 1050;
    padding-top: 2rem;
    transition: left 0.3s ease-in-out;
  }

  .sidebar.show {
    left: 0;
  }

  /* 🔴 Overlay */
  .dashboard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
    display: none;
  }

  .dashboard-overlay.show {
    display: block;
  }

  /* 🔴 REMOVE EMPTY SPACE CAUSED BY SIDEBAR COLUMN */
  .col-lg-3 {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 🔴 CONTENT SHOULD START IMMEDIATELY */
  .col-lg-9,
  .col-md-9 {
    width: 100%;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* 🔴 FIX TOGGLE GAP */
  #dashboardToggle {
    margin-bottom: 0.75rem;
  }

  /* 🔴 CONTAINER CLEANUP */
  .container-fluid {
    padding-top: 0 !important;
  }

  /* 🔴 HEADER BOTTOM GAP FIX */
  header,
  .topbar-area {
    margin-bottom: 0 !important;
  }
}

/* =====================================
   SMALL MOBILE TWEAKS
===================================== */

@media (max-width: 576px) {

  .sidebar {
    width: 18rem;
  }

  .profile-img {
    width: 70px;
    height: 70px;
  }

  .nav-link {
    font-size: 15px;
  }

  .profile-card {
    padding: 1.25rem !important;
  }
}


/* ================== Profile ================================ */

/* PROFILE AVATAR */
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f3f3;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-btn {
  font-size: 14px;
  color: #ff8c00;
  cursor: pointer;
}

/* SOFT INPUT */
.soft-input {
  background: #f6f7fb;
  border-radius: 12px;
  border: none;
  padding: 12px 14px;
}

.soft-input:focus {
  box-shadow: none;
  outline: none;
}

/* RADIO */
.radio-wrap {
  position: relative;
  cursor: pointer;
  font-weight: 500;
}

.radio-wrap input {
  display: none;
}

.radio-wrap span {
  width: 16px;
  height: 16px;
  border: 2px solid #ff8c00;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  position: relative;
}

.radio-wrap input:checked + span::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #ff8c00;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
}

/* VERIFIED */
.verified-badge {
  position: absolute;
  right: 16px;
  top: 42px;
  font-size: 13px;
  color: #2ecc71;
  font-weight: 500;
}

/* BUTTONS */
.save-btn {
  background: #ff8c00;
  color: #fff;
  border-radius: 14px;
  border: none;
}

.discard-btn {
  border: 2px solid #ff8c00;
  background: transparent;
  border-radius: 14px;
  color: #ff8c00;
}



/* ================== Booking ================================ */

/* BOOKING TABS */
.booking-tabs {
  display: flex;
  gap: 12px;
  background: #f6f7fb;
  padding: 8px;
  border-radius: 12px;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 500;
  color: #555;
}

.tab-btn.active {
  background: #fff;
  color: #6c63ff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* BOOKING CARD */
.booking-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* BOOKING HEADER IMAGE */
.booking-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-icon {
  width: 64px;
  height: 44px;
  background: #f3f4ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.booking-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}


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

.booking-header h6 {
  margin: 0;
}

.manage-btn {
  background: transparent;
  border: 1.5px solid #6c63ff;
  color: #6c63ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
}

.booking-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
  border-top: 1px dashed #eaeaea;
  padding-top: 14px;
}

.booking-info span {
  font-size: 12px;
  color: #777;
}

.booking-info p {
  margin: 0;
  font-weight: 500;
}

/* MOBILE */
@media (max-width: 768px) {
  .booking-info {
    grid-template-columns: 1fr;
  }

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

/* TAB CONTENT */
.booking-list {
  display: none;
}

.booking-list.active {
  display: block;
}
