/* ====== Общие стили ====== */
html, body {
  height: 100%;
}

body {
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1 0 auto;
}

/* ====== Footer ====== */
footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* ====== Карточки ====== */
.card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-text {
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ====== Кнопки ====== */
.btn-outline-dark {
  border-width: 1.5px;
  transition: all 0.2s ease;
}

.btn-outline-dark:hover,
.btn-outline-dark:active,
.btn-outline-dark.active {
  background-color: #212529;
  color: #fff;
}

/* ====== Слоты времени ====== */
#timeSlots .btn {
  min-width: 90px;
}

/* ====== Чекбокс согласия ====== */
.form-check-input:checked {
  background-color: #212529;
  border-color: #212529;
}

.form-check-label a {
  color: inherit;
}

/* ====== Декоративные элементы ====== */
hr {
  opacity: 0.15;
}

/* ====== Логотип и сетка ====== */
.container > .row {
  margin-top: 2rem;
}

.container img[alt="Logo"] {
  margin-bottom: 1.25rem;
}

/* ====== Главная страница ====== */
.home-header {
  margin-bottom: 48px;
}

.home-logo {
  height: 64px;
  margin-bottom: 20px;
}

.booking-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  max-width: 500px;
  margin: 0 auto;
}

.booking-card-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 0 auto 32px;
  display: block;
  object-fit: cover;
}

.booking-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 16px;
}

.booking-card-description {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ====== Страница записи ====== */
.booking-page-header {
  margin-bottom: 32px;
}

.booking-page-logo {
  height: 64px;
  margin-bottom: 20px;
}

.booking-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #212529;
}

.booking-page-description {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 32px;
}

.date-navigation {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.date-navigation .input-group {
  max-width: 300px;
}

.date-navigation .form-control-lg {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.date-navigation #btnCustomDate {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  white-space: nowrap;
}

#slotInfo {
  min-height: 24px;
}

.slots-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 32px;
  min-height: 200px;
}

#waitingAlert {
  display: none;
}

#waitingAlert svg {
  flex-shrink: 0;
}

/* ====== Страница "Мои записи" ====== */
.my-bookings-header {
  margin-bottom: 32px;
}

.my-bookings-logo {
  height: 64px;
  margin-bottom: 20px;
}

.my-bookings-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #212529;
}

.my-bookings-description {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 32px;
}

.search-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.appointment-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.appointment-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.appointment-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.appointment-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.appointment-info {
  flex: 1;
}

.appointment-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 4px;
}

.appointment-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: #6c757d;
}

.appointment-detail {
  display: flex;
  align-items: center;
  gap: 6px;
}

.appointment-detail svg {
  width: 16px;
  height: 16px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-confirmed {
  background: #d1e7dd;
  color: #0f5132;
}

.status-canceled {
  background: #f8d7da;
  color: #842029;
}

.status-waiting {
  background: #fff3cd;
  color: #856404;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.empty-state-icon svg {
  width: 40px;
  height: 40px;
  color: #6c757d;
}

/* ====== Страница успеха ====== */
.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s ease-out;
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
}

.success-icon.waiting {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
}

.success-page-title {
  font-size: 2rem;
}

.success-icon svg {
  width: 48px;
  height: 48px;
  color: white;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.info-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: #e9ecef;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.info-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
}

/* ====== Страница 404 ====== */
.error-page-container {
  max-width: 500px;
}
