/* =========================
   Booking Page Styles
   ========================= */

* {
  box-sizing: border-box;
}

.barber-info {
  display: flex;
  gap: 16px;
}



/* Общие стили для страницы бронирования */
body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #121212;
  color: #eee;
}


.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 150px;
  height: 150px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 2rem;
  margin: 0;
  color: #e63946;
}


/* Main content */
main {
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
  background-color: #2c2c2c;
  border-radius: 5px;
}

/* Табы для дней */
#dayTabsSection {
  margin-bottom: 20px;
  text-align: center;
}

#dayTabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.day-tab {
  padding: 10px 15px;
  background-color: #3c3c3c;
  border: 1px solid #555;
  border-radius: 3px;
  color: #eee;
  cursor: pointer;
  transition: background 0.3s;
}

.day-tab.selected,
.day-tab:hover {
  background-color: #e63946;
  border-color: #d62828;
}

/* Таблица бронирований */
#bookingsTableSection {
  margin-bottom: 30px;
}

#bookingsTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

#bookingsTable th,
#bookingsTable td {
  border: 1px solid #555;
  padding: 8px;
}

#bookingsTable th {
  background-color: #e63946;
  color: #fff;
}

/* Форма ручного бронирования */
/* Кнопка отправки формы */
/* Контейнер секции */
#manualBookingSection {
  background: #1f1f1f;
  padding: 8px;
  border-radius: 4px;
  margin: 8px auto;
  font-family: 'Roboto', sans-serif;
  color: #ddd;
}

/* Заголовок секции */
#manualBookingHeader {
  font-size: 1.6rem;
  /* увеличено с 1.3rem */
  text-align: center;
  color: #f76c6c;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #444;
  cursor: pointer;
  transition: color 0.2s ease;
}

#manualBookingHeader:hover {
  color: #e65a5a;
}

/* Форма – минимальные отступы */
#manualBookingForm {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Метки для полей */
#manualBookingForm label {
  font-size: 1rem;
  margin: 0;
  font-weight: normal;
}

/* Поля ввода и select */
#manualBookingForm input[type="text"],
#manualBookingForm select {
  padding: 4px 6px;
  font-size: 1rem;
  /* увеличено с 0.8rem */
  border: 1px solid #333;
  border-radius: 3px;
  background: #2b2b2b;
  color: #ddd;
  outline: none;
  transition: border-color 0.2s ease;
}

#manualBookingForm input[type="text"]:focus,
#manualBookingForm select:focus {
  border-color: #f76c6c;
}

/* Секция услуг – убираем лишние разрывы строк */
#manualServices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
}

#manualServices br {
  display: none;
}

/* Карточки услуг */
#manualServices label {
  display: flex;
  align-items: center;
  background: #2b2b2b;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 0.75rem;
  /* увеличено с 0.75rem */
  color: #ddd;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

#manualServices label:hover {
  background: #333;
  transform: translateY(-1px);
}

/* Чекбоксы для услуг */
#manualServices input[type="checkbox"] {
  appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid #f76c6c;
  border-radius: 2px;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.2s;
  flex-grow: 0;
  flex-shrink: 0;
}

#manualServices input[type="checkbox"]:checked {
  background: #f76c6c;
}

/* Итоговая информация */
#manualSummary {
  background: #2b2b2b;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 4px;
  text-align: center;
  font-size: 1rem;
  /* увеличено с 0.75rem */
  color: #ccc;
  margin-top: 4px;
}

/* Выбор времени */
#manualTimeContainer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#manualTimeContainer label {
  font-size: 1rem;
  /* увеличено с 0.8rem */
  margin: 0;
}

#manualTimeContainer select {
  padding: 4px 6px;
  font-size: 1rem;
  /* увеличено с 0.8rem */
  border: 1px solid #333;
  border-radius: 3px;
  background: #2b2b2b;
  color: #ddd;
  outline: none;
  transition: border-color 0.2s;
  max-width: 250px;
}

#manualTimeContainer select:focus {
  border-color: #f76c6c;
}




/* Попап переноса */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: #2c2c2c;
  padding: 20px;
  border-radius: 5px;
  color: #eee;
}

.popup-content h2 {
  color: #e63946;
}

.popup-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

/* Footer */
footer {
  background-color: #121212;
  border-top: 2px solid #e63946;
  padding: 15px 20px;
  text-align: center;
  margin-top: 20px;
}

.footer-content p {
  margin: 5px 0;
  color: #aaa;
}





/* --- Горизонтальное расположение секций --- */
@media (min-width: 768px) {

  body>section#ownCreated,
  body>section#servicesSelection {
    display: inline-block;
    width: calc(50% - 10px);
    /* уменьшённая ширина с отступами */
    vertical-align: top;
    margin: 5px;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {

  #ownCreated,
  #servicesSelection {
    display: block;
    width: 100%;
    margin: 5px 0;
    box-sizing: border-box;
  }
}

/* --- Секция "Ваши активные брони" --- */
#ownCreated {
  background: linear-gradient(135deg, #232526, #414345);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

#ownCreated h2 {
  color: #f76c6c;
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.6rem;
  border-bottom: 2px solid #f76c6c;
  padding-bottom: 8px;
}

#ownListContainer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#ownListContainer li {
  background-color: #2a2a2a;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 8px;
  color: #eee;
  flex: 1 1 calc(50% - 8px);
  /* два элемента в строке */
  min-width: 180px;
  transition: transform 0.3s;
}

#ownListContainer li:hover {
  transform: translateY(-3px);
}

/* --- Секция "Выбор услуг" --- */
#servicesSelection {
  background: linear-gradient(135deg, #232526, #414345);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

#servicesSelection h2 {
  color: #f76c6c;
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.6rem;
  border-bottom: 2px solid #f76c6c;
  padding-bottom: 8px;
}

#servicesListContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

#servicesListContainer label {
  background-color: #2a2a2a;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 8px 10px;
  color: #eee;
  display: flex;
  align-items: center;
  transition: transform 0.3s, background-color 0.3s;
  cursor: pointer;
  flex: 1 1 calc(45% - 8px);
  /* примерно два элемента в строке */
  min-width: 180px;
}

#servicesListContainer label:hover {
  background-color: #333;
  transform: translateY(-2px);
}

#servicesListContainer input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid #f76c6c;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-grow: 0;
  flex-shrink: 0;
}

#servicesListContainer input[type="checkbox"]:checked {
  background-color: #f76c6c;
}

/* Итоговый блок с информацией по услугам */
#servicesSummary {
  margin-top: 15px;
  background-color: #2a2a2a;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #555;
}

#servicesSummary p {
  margin: 3px 0;
  font-size: 1rem;
  color: #eee;
}


/* Контейнер профиля барбера */
#barberProfile {
  background: linear-gradient(135deg, #232526, #414345);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
}

/* Блок с информацией о выбранном барбере */
.selected-barber {
  text-align: center;
  position: relative;
}

#openChangePassword{
  position: absolute;
  bottom: 0;
  right: 0;
}

/* Стилизация изображения барбера */
.selected-barber img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f76c6c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

/* Оформление имени барбера */
.selected-barber h3 {
  font-size: 1.4rem;
  color: #f76c6c;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}






/* =========================
   Booking Page Styles
   ========================= */

.barber-info {
  display: flex;
  gap: 16px;
}




a {
  color: #e63946;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background-color: #1e1e1e;
  border-bottom: 2px solid #e63946;
  padding: 15px 20px;
  max-width: 1024px;
  margin: 0 auto;
}

.header-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}





/* Выбор услуг */
#servicesSelection {
  margin-bottom: 30px;
}

#servicesSelection h2 {
  color: #e63946;
}

#servicesSummary p {
  margin: 5px 0;
}

/* Выбор дня */
#daySelection {
  margin-bottom: 30px;
}

#dayTabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.day-tab {
  padding: 10px 15px;
  background-color: #3c3c3c;
  border: 1px solid #555;
  border-radius: 3px;
  color: #eee;
  cursor: pointer;
  transition: background 0.3s;
}

.day-tab.selected,
.day-tab:hover {
  background-color: #e63946;
  border-color: #d62828;
}

/* Карточки барберов */
#barberCardsSection {
  margin-bottom: 30px;
  min-height: 48px;
}

#popupResponse {
  margin: 12px auto;
}

#barberCardsSection h2 {
  text-align: center;
  color: #e63946;
  margin-bottom: 20px;
}

#barberCardsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.barber-card {
  background-color: #3c3c3c;
  border: 1px solid #555;
  border-radius: 5px;
  width: 200px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.barber-card:hover {
  transform: scale(1.05);
  border-color: #e63946;
}

.barber-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
}

.barber-card h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #e63946;
}

/* Стили для списка доступного времени в карточке */
.barber-card h4 {
  margin: 10px 0 5px;
  font-size: 1rem;
  color: #ccc;
}

.barber-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.barber-card ul li {
  background-color: #444;
  margin: 3px 0;
  padding: 5px;
  border-radius: 3px;
  font-size: 0.9rem;
  color: #eee;
}

/* Модальное окно бронирования */
.modal {
  display: none;
  /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #2c2c2c;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #555;
  width: 90%;
  max-width: 500px;
  border-radius: 5px;
  position: relative;
}

.modal-content h3 {
  color: #e63946;
}

.modal-content label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #555;
  border-radius: 3px;
  background-color: #3c3c3c;
  color: #ddd;
  margin-top: 5px;
}

.modal-content .booking-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}




.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #e63946;
}

/* Базовое оформление для select */
select {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #555;
  border-radius: 3px;
  background-color: #3c3c3c;
  color: #ddd;
}

/* Стили для аватара в попапе */
#popupBarberAvatar {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 10px;
}



/* =========================
     Остальные стили (для других страниц)
     ========================= */

#booking {
  margin-top: 30px;
}

#booking h2 {
  margin-bottom: 15px;
  color: #e63946;
}

form {
  display: grid;
  gap: 15px;
}

form label {
  font-weight: bold;
}

form input,
form select,
form fieldset {
  font-size: 0.75rem;
  border: 1px solid #555;
  border-radius: 3px;
  background-color: #3c3c3c;
  color: #ddd;
  outline: none;
}

fieldset {
  border: 1px solid #555;
  padding: 10px;
}

.selected-barber {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.selected-barber img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.dashboard-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.dashboard-section {
  background-color: #2c2c2c;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  flex: 1 1 45%;
  min-width: 300px;
}

.dashboard-section h2 {
  margin-top: 0;
  font-size: 1.6rem;
  border-bottom: 2px solid #e63946;
  padding-bottom: 5px;
  color: #e63946;
}

.queue-item {
  background-color: #3c3c3c;
  border: 1px solid #555;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 3px;
}

.queue-item p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}


#servicesList ul {
  list-style: none;
  padding: 0;
}

#servicesList li {
  background-color: #3c3c3c;
  padding: 8px;
  margin-bottom: 5px;
  border: 1px solid #555;
  border-radius: 3px;
}

#historyList {
  overflow-x: auto;
}

#historyList table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin-top: 10px;
}

#historyList th,
#historyList td {
  border: 1px solid #555;
  padding: 8px;
}

#historyList th {
  background-color: #e63946;
  color: #fff;
}

.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background-color: #2c2c2c;
  border: 2px solid #555;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.login-container h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #e63946;
}
#login{
  padding: 8px;
}
#password{
  padding: 8px;
}
#clientBookingsTable {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
}

#clientBookingsTable thead {
  background-color: #e63946;
  color: #fff;
}

#clientBookingsTable th,
#clientBookingsTable td {
  padding: 12px 15px;
  border: 1px solid #444;
}

#clientBookingsTable tbody tr:nth-child(odd) {
  background-color: #2c2c2c;
}

#clientBookingsTable tbody tr:nth-child(even) {
  background-color: #333;
}

#clientBookingsTable tbody tr:hover {
  background-color: #555;
}


.change_order {
  background: rgba(32, 32, 32, 0.95);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 20px;
  width: 500px;
  margin: 20px auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  font-family: 'Roboto', sans-serif;
  color: #ddd;
}

.change_order h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-align: center;
  color: #f76c6c;
  border-bottom: 2px solid #f76c6c;
  padding-bottom: 10px;
}

/* Блок с деталями переноса */
#rescheduleDetails {
  background: #2a2a2a;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.4;
}

/* Метки для селектов */
.change_order label {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
  color: #ccc;
}

/* Селекты для выбора нового дня и времени */
.change_order select {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #555;
  border-radius: 5px;
  background: #2a2a2a;
  color: #ddd;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Блок с кнопками действий */
.popup-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
  margin-bottom: 10px;
}

.booking-details {
  background-color: #2c2c2c;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 20px auto;
  color: #eee;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.services-summary {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #555;
}

.services-summary h3 {
  margin: 0 0 10px 0;
  color: #e63946;
  font-size: 1.4rem;
}

.popup-services-list {
  background-color: #3c3c3c;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: bold;

}

.services-summary p {
  font-size: 1rem;
  margin: 5px 0;
}

.barber-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.barber-info img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e63946;
}

.barber-info h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #e63946;
}

.time-selection {
  margin-bottom: 20px;
}

.time-selection label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.time-selection select {
  width: 100%;
  padding: 8px;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #3c3c3c;
  color: #eee;
}

.client-info {
  margin-bottom: 20px;
}

.client-info label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.client-info input {
  width: 100%;
  padding: 8px;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #3c3c3c;
  color: #eee;
  margin-bottom: 10px;
}

.booking-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

#popupResponse {
  margin-top: 15px;
  font-size: 1rem;
  color: #e63946;
}


/* Сообщение-ответ */
#rescheduleResponse {
  margin-top: 10px;
  text-align: center;
  font-size: 1rem;
  color: #eee;
}

.button-close {
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  background-color: #999;
}

.button-close:hover {
  background-color: #666;
}

.project-button {
  background-color: #e63946;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.project-button:hover {
  background-color: #d62828;
  transform: scale(1.05);
}

table th {
  text-align: center;
}

/* Стили для кнопки-иконки локации */
.location-btn {
  background: url('images/location-dot-solid.svg') no-repeat center center;
  background-size: contain;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  outline: none;
  padding: 0;
  margin: 10px;
  transition: opacity 0.3s ease;
}

.location-btn:hover {
  opacity: 0.8;
}
