/* =========================================================
   QUICKCONNECT — PROVIDER BOOKINGS
   Premium • Modern • Large Cards • Responsive
========================================================= */

/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.12), transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.10), transparent 30%),
    #080b14;
  color: #f8fafc;
  min-height: 100vh;
}

/* =========================
   DASHBOARD
========================= */

.dashboard {
  display: flex;
  min-height: 100vh;
}

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

.sidebar {
  width: 255px;
  min-width: 255px;
  height: 100vh;
  position: sticky;
  top: 0;

  display: flex;
  flex-direction: column;

  background: rgba(13, 17, 29, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.07);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  padding: 28px 18px;
  z-index: 100;
}

/* =========================
   LOGO
========================= */

.logo {
  padding: 5px 12px 32px;
}

.logo h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.8px;

  background: linear-gradient(135deg, #ffffff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo p {
  margin-top: 5px;
  color: #7f8aa3;
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* =========================
   NAVIGATION
========================= */

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

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;

  padding: 13px 14px;
  border-radius: 12px;

  color: #929bb0;
  text-decoration: none;

  font-size: 14px;
  font-weight: 500;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.sidebar nav a i {
  width: 19px;
  text-align: center;
  font-size: 15px;
}

.sidebar nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  transform: translateX(3px);
}

.sidebar nav a.active {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      rgba(124, 58, 237, 0.28),
      rgba(99, 102, 241, 0.12)
    );

  border: 1px solid rgba(167, 139, 250, 0.14);
}

/* =========================
   MAIN CONTENT
========================= */

.main-content {
  flex: 1;
  min-width: 0;
  padding: 42px 45px 70px;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  margin-bottom: 28px;
}

.topbar h1 {
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -1px;
  color: #ffffff;
}

.topbar h1 i {
  margin-right: 9px;
  color: #a78bfa;
}

.topbar p {
  margin-top: 8px;
  color: #7f8aa3;
  font-size: 14px;
}

/* =========================
   FILTER AREA
========================= */

.booking-filters {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 28px;
  padding: 6px;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;

  overflow-x: auto;
  scrollbar-width: none;
}

.booking-filters::-webkit-scrollbar {
  display: none;
}

/* =========================
   FILTER BUTTON
========================= */

.booking-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-width: 95px;
  padding: 11px 17px;

  border: 1px solid transparent;
  border-radius: 10px;

  background: transparent;
  color: #8d98ad;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
  white-space: nowrap;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.booking-filter:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
}

.booking-filter.active {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      rgba(124, 58, 237, 0.30),
      rgba(99, 102, 241, 0.16)
    );

  border-color: rgba(167, 139, 250, 0.22);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

/* =========================
   BOOKINGS CONTAINER
========================= */

#bookingsContainer {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(420px, 1fr)
    );

  gap: 24px;

  align-items: stretch;
}

/* =========================
   LARGE BOOKING CARD
========================= */

.booking-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 360px;
  padding: 26px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.025)
    );

  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  overflow: hidden;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.booking-card:hover {
  transform: translateY(-5px);

  border-color: rgba(167, 139, 250, 0.28);

  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.30),
    0 0 35px rgba(124, 58, 237, 0.07);
}

/* =========================
   CARD STATUS ACCENTS
========================= */

.booking-card.pending-card {
  border-top: 3px solid #f59e0b;
}

.booking-card.accepted-card {
  border-top: 3px solid #22c55e;
}

.booking-card.postponed-card {
  border-top: 3px solid #8b5cf6;
}

.booking-card.declined-card {
  border-top: 3px solid #ef4444;
}

/* =========================
   BOOKING HEADER
========================= */

.booking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  padding-bottom: 20px;
  margin-bottom: 20px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.booking-header h3 {
  color: #ffffff;

  font-size: 20px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.booking-header p {
  color: #94a3b8;

  font-size: 13px;
  line-height: 1.5;
}

/* =========================
   STATUS BADGE
========================= */

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  padding: 7px 12px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.5px;

  border: 1px solid transparent;
}

.status.pending {
  color: #fbbf24;

  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.22);
}

.status.accepted {
  color: #4ade80;

  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.22);
}

.status.postponed {
  color: #c4b5fd;

  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.25);
}

.status.declined {
  color: #f87171;

  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.22);
}

/* =========================
   BOOKING BODY
========================= */

.booking-body {
  flex: 1;

  color: #9aa5b8;

  font-size: 13px;
  line-height: 1.65;
}

.booking-body > p {
  margin-bottom: 12px;
}

.booking-body strong {
  color: #dbe4f2;
  font-weight: 650;
}

/* =========================
   INFORMATION GRID
========================= */

.booking-info-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 13px;
}

.booking-info-grid p {
  min-height: 72px;

  padding: 14px 15px;

  background: rgba(4, 7, 15, 0.38);

  border: 1px solid rgba(255, 255, 255, 0.055);

  border-radius: 12px;

  color: #94a3b8;

  font-size: 13px;
  line-height: 1.5;
}

.booking-info-grid p strong {
  display: block;

  margin-bottom: 4px;

  color: #7f8aa3;

  font-size: 11px;
  font-weight: 650;

  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================
   BOOKING ACTIONS
========================= */

.booking-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 24px;
  padding-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.booking-actions button {
  display: inline-flex;

  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 43px;

  padding: 10px 16px;

  border-radius: 10px;

  font-family: inherit;

  font-size: 13px;
  font-weight: 650;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.booking-actions button:hover {
  transform: translateY(-2px);
}

.booking-actions button:active {
  transform: translateY(0);
}

/* =========================
   ACCEPT
========================= */

.accept-btn {
  color: #4ade80;

  background: rgba(34, 197, 94, 0.10);

  border: 1px solid rgba(34, 197, 94, 0.25);
}

.accept-btn:hover {
  background: rgba(34, 197, 94, 0.18);

  border-color: rgba(34, 197, 94, 0.40);
}

/* =========================
   POSTPONE
========================= */

.postpone-btn {
  color: #c4b5fd;

  background: rgba(139, 92, 246, 0.10);

  border: 1px solid rgba(139, 92, 246, 0.25);
}

.postpone-btn:hover {
  background: rgba(139, 92, 246, 0.18);

  border-color: rgba(139, 92, 246, 0.40);
}

/* =========================
   DECLINE
========================= */

.decline-btn {
  color: #f87171;

  background: rgba(239, 68, 68, 0.10);

  border: 1px solid rgba(239, 68, 68, 0.25);
}

.decline-btn:hover {
  background: rgba(239, 68, 68, 0.18);

  border-color: rgba(239, 68, 68, 0.40);
}

/* =========================
   COMPLETE
========================= */

.complete-btn {
  color: #38bdf8;

  background: rgba(14, 165, 233, 0.10);

  border: 1px solid rgba(14, 165, 233, 0.25);
}

.complete-btn:hover {
  background: rgba(14, 165, 233, 0.18);

  border-color: rgba(14, 165, 233, 0.40);
}

/* =========================
   DETAILS
========================= */

.details-btn {
  color: #cbd5e1;

  background: rgba(255, 255, 255, 0.045);

  border: 1px solid rgba(255, 255, 255, 0.10);
}

.details-btn:hover {
  color: #ffffff;

  background: rgba(255, 255, 255, 0.09);

  border-color: rgba(255, 255, 255, 0.18);
}

/* =========================
   EMPTY STATE
========================= */

.empty-state {
  grid-column: 1 / -1;

  min-height: 330px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 45px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.025)
    );

  border: 1px solid rgba(255, 255, 255, 0.07);

  border-radius: 20px;

  color: #7f8aa3;
}

.empty-state i {
  color: #8b5cf6;
  opacity: 0.75;
}

.empty-state h3 {
  margin-bottom: 8px;

  color: #ffffff;

  font-size: 19px;
}

.empty-state p {
  max-width: 450px;

  color: #7f8aa3;

  font-size: 13px;
  line-height: 1.6;
}

/* =========================
   PRIMARY BUTTON
========================= */

.btn-primary {
  display: inline-flex;

  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 43px;

  padding: 10px 17px;

  border: 1px solid rgba(167, 139, 250, 0.22);

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      rgba(124, 58, 237, 0.85),
      rgba(99, 102, 241, 0.85)
    );

  color: #ffffff;

  font-size: 13px;
  font-weight: 650;

  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);

  filter: brightness(1.08);

  box-shadow:
    0 12px 30px rgba(124, 58, 237, 0.22);
}

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

.sidebar-bottom {
  margin-top: auto !important;
  width: 100% !important;
  padding: 20px 0 0 !important;
}

.logout-btn {
  width: 100% !important;
  min-height: 46px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  gap: 12px !important;

  padding: 12px 16px !important;

  border: 1px solid rgba(255, 255, 255, 0.08) !important;

  border-radius: 10px !important;

  background: rgba(255, 255, 255, 0.04) !important;

  color: #cbd5e1 !important;

  font-size: 14px !important;
  font-weight: 600 !important;

  cursor: pointer !important;

  transition: all 0.2s ease !important;
}

.logout-btn i {
  width: 20px !important;
  min-width: 20px !important;

  text-align: center !important;

  font-size: 15px !important;
}

.logout-btn span {
  display: inline-block !important;
  white-space: nowrap !important;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.12) !important;

  border-color: rgba(239, 68, 68, 0.25) !important;

  color: #f87171 !important;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {

  .dashboard {
    display: block;
  }

  .sidebar {
    width: 100%;
    min-width: 0;

    height: auto;

    position: relative;

    padding: 16px;
  }

  .logo {
    padding: 5px 8px 15px;
  }

  .sidebar nav {
    flex-direction: row;

    overflow-x: auto;

    padding-bottom: 3px;

    scrollbar-width: none;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar nav a {
    flex: 0 0 auto;

    white-space: nowrap;
  }

  .main-content {
    padding: 28px 18px 55px;
  }

  #bookingsContainer {
    grid-template-columns: 1fr;
  }

  .booking-card {
    min-height: auto;
    padding: 21px;
  }
}

/* =========================
   SMALL PHONES
========================= */

@media (max-width: 560px) {

  .topbar h1 {
    font-size: 24px;
  }

  .booking-filters {
    margin-left: -2px;
    margin-right: -2px;
  }

  .booking-header {
    flex-direction: column;
    gap: 12px;
  }

  .booking-header h3 {
    font-size: 18px;
  }

  .booking-info-grid {
    grid-template-columns: 1fr;
  }

  .booking-actions {
    flex-direction: column;
  }

  .booking-actions button {
    width: 100%;
  }

  .empty-state {
    min-height: 280px;
    padding: 30px 20px;
  }
}

/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 380px) {

  .main-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .booking-card {
    padding: 17px;
  }

  .booking-header h3 {
    font-size: 17px;
  }
}
/* =========================================================
   POSTPONE BOOKING CARD
   Beautiful provider date/time/reason form
========================================================= */

.postpone-card {
  width: 100%;
  margin-top: 22px;
  padding: 26px;

  background:
    linear-gradient(
      145deg,
      rgba(124, 58, 237, 0.14),
      rgba(15, 23, 42, 0.82)
    );

  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 20px;

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  animation: postponeCardIn 0.25s ease;
}

.postpone-card h3 {
  margin: 0 0 7px;

  color: #ffffff;
  font-size: 19px;
  font-weight: 750;
}

.postpone-card > p {
  margin-bottom: 22px;

  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}


/* =========================
   POSTPONE FORM
========================= */

.postpone-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.postpone-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.postpone-field.full {
  grid-column: 1 / -1;
}

.postpone-field label {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 650;
}

.postpone-field label i {
  margin-right: 6px;
  color: #a78bfa;
}

.postpone-field input,
.postpone-field textarea {
  width: 100%;

  padding: 13px 14px;

  background: rgba(5, 8, 17, 0.72);

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;

  color: #ffffff;

  font-family: inherit;
  font-size: 14px;

  outline: none;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.postpone-field input {
  height: 48px;
}

.postpone-field textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.5;
}

.postpone-field input:focus,
.postpone-field textarea:focus {
  border-color: rgba(167, 139, 250, 0.65);

  background: rgba(5, 8, 17, 0.9);

  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.10);
}

.postpone-field input::placeholder,
.postpone-field textarea::placeholder {
  color: #566075;
}


/* =========================
   DATE / TIME INPUT ICONS
========================= */

.postpone-field input[type="date"],
.postpone-field input[type="time"] {
  color-scheme: dark;
}


/* =========================
   POSTPONE ACTIONS
========================= */

.postpone-actions {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 11px;

  padding-top: 5px;
}

.postpone-actions button {
  min-height: 44px;

  padding: 11px 18px;

  border-radius: 10px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 650;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.postpone-actions button:hover {
  transform: translateY(-2px);
}

.postpone-cancel {
  background: rgba(255, 255, 255, 0.045);

  border: 1px solid rgba(255, 255, 255, 0.10);

  color: #cbd5e1;
}

.postpone-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
}

.postpone-submit {
  background: linear-gradient(
    135deg,
    #7c3aed,
    #6366f1
  );

  border: 1px solid rgba(167, 139, 250, 0.35);

  color: #ffffff;

  box-shadow:
    0 8px 22px rgba(99, 102, 241, 0.20);
}

.postpone-submit:hover {
  box-shadow:
    0 12px 28px rgba(99, 102, 241, 0.30);
}


/* =========================
   POSTPONE HEADER ICON
========================= */

.postpone-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.postpone-title i {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: rgba(245, 158, 11, 0.12);

  border: 1px solid rgba(245, 158, 11, 0.20);

  color: #f59e0b;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 650px) {

  .postpone-card {
    padding: 20px;
    border-radius: 17px;
  }

  .postpone-form {
    grid-template-columns: 1fr;
  }

  .postpone-field.full {
    grid-column: auto;
  }

  .postpone-actions {
    grid-column: auto;

    flex-direction: column-reverse;
    align-items: stretch;
  }

  .postpone-actions button {
    width: 100%;
  }

}


/* =========================
   ANIMATION
========================= */

@keyframes postponeCardIn {

  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}