/* === Appointment + sidebar overlay styles (add to app.css) === */

/* improve form spacing & inputs */
.appointment-inner .form .form-group input,
.appointment-inner .form .form-group select,
.appointment-inner .form .form-group textarea {
  font-family: 'Poppins', sans-serif;
  color: #333;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
}

.appointment-inner .form .form-group textarea {
  height: 200px;
}

/* disabled select visual */
#service_id[disabled] {
  background: #f8f8f8;
  color: #888;
  cursor: not-allowed;
}

/* right sidebar styling */
.work-hour {
  background: #2e2552; /* dark purple like screenshot */
  color: #fff;
  padding: 28px;
  border-radius: 6px;
  position: relative;
  transition: all 220ms ease;
}

/* header and expand button */
.work-hour .work-hour-header h3 {
  margin: 0;
  color: #fff;
  font-weight: 700;
}
.work-hour .work-hour-header .btn {
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}

/* list inside sidebar */
.work-hour .time-sidual {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}
.work-hour .time-sidual .day {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.3;
}
.work-hour .time-sidual .day span {
  display: block;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  margin-top: 6px;
}

/* overlay expanded state */
body.overlay-open .work-hour {
  position: fixed;
  right: 24px;
  top: 80px;
  width: 420px;
  max-width: calc(100% - 48px);
  height: calc(100% - 160px);
  z-index: 9999;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(2,6,23,0.45);
  border-radius: 8px;
}

/* show the return button when overlay is active */
body.overlay-open .work-hour .work-hour-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(46,37,82,0) 0%, rgba(46,37,82,0.95) 100%);
}

/* hide global footer while overlay active */
body.overlay-open footer,
body.overlay-open .footer,
body.overlay-open .site-footer,
body.overlay-open .page-footer {
  display: none !important;
}

/* subtle style for the "return" button */
.work-hour-footer .btn {
  width: 100%;
  max-width: 300px;
  border-radius: 6px;
}

/* small viewport adjustments */
@media (max-width: 991px) {
  body.overlay-open .work-hour {
    left: 12px;
    right: 12px;
    top: 70px;
    height: calc(100% - 140px);
    width: auto;
  }
}

/* optional: slightly customized alert for appointment page */
.appointment .alert-info {
  background: #f6f8ff;
  border-color: rgba(46,37,82,0.12);
  color: #222;
}
.appointment .alert-info .alert-heading { color: #2e2552; }