* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 90%;
}

.loading-message {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1.125rem;
    color: #9ca3af;
}


/* Общие стили */
.header {
    background-color: #111; /* немного светлее общего фона #333 для контраста */
    color: #fff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.header__logo img {
    height: 40px;
    transition: transform 0.2s ease;
}

.header__logo img:hover {
    transform: scale(1.03);
    cursor: pointer;
}

/* Меню */
.header__menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Кнопки меню */
.menu__profile,
.menu__switch,
.menu__admin  {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
}

.menu__profile:hover,
.menu__switch:hover,
.menu__admin:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Иконки внутри кнопок */
.menu__profile svg,
.menu__switch svg,
.menu__admin svg {
    width: 20px;
    height: 20px;
}

/* Стили для светлой темы (опционально) */
body.light-theme .header {
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme .menu__profile,
body.light-theme .menu__switch {
    color: #555;
}

body.light-theme .menu__profile:hover,
body.light-theme .menu__switch:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}
.main {
    display: grid;
    grid-template-rows: 10vh 1fr;
}
/* AuthModal.css */

/* --- Overlay (Затемнение фона) --- */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    opacity: 0;
    animation: fadeIn 0.2s ease-out forwards;
}

/* --- Modal Container --- */
.auth-modal {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    outline: none;
    transform: scale(0.95);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

/* --- Close Button --- */
.auth-modal__close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.auth-modal__close-btn:hover {
    color: #111827;
    background-color: #f3f4f6;
}

/* --- Title --- */
.auth-modal__title {
    margin: 0 0 1.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    letter-spacing: -0.025em;
}

/* --- Form --- */
.auth-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* --- Labels --- */
.auth-modal__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* --- Inputs --- */
.auth-modal__input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #111827;
    background-color: #fff;
    transition: all 0.2s ease;
}

.auth-modal__input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.auth-modal__input::placeholder {
    color: #9ca3af;
}

/* --- Submit Button --- */
.auth-modal__submit-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 0.5rem;
    width: 100%;
}

.auth-modal__submit-btn:hover {
    background-color: #4338ca;
}

.auth-modal__submit-btn:active {
    transform: translateY(1px);
}

/* --- Google Button --- */
.auth-modal__google-btn {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.auth-modal__google-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.auth-modal__google-icon {
    font-weight: 700;
    color: #fc3f1d; /* Google Blue */
    font-size: 1.1rem;
}

/* --- Footer (Toggle Login/Register) --- */
.auth-modal__footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-modal__footer-text {
    font-weight: 400;
}

.auth-modal__toggle-link {
    background: none;
    border: none;
    color: #4f46e5;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-modal__toggle-link:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* --- Cancel Button (если нужен отдельно, сейчас скрыт или заменен футером) --- */
.auth-modal__cancel-btn {
    display: none; /* Скрыл, так как теперь есть крестик и футер */
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Mobile Adaptability --- */
@media (max-width: 480px) {
    .auth-modal {
        padding: 1.5rem;
        margin: 1rem;
        max-width: 100%;
    }
    
    .auth-modal__title {
        font-size: 1.5rem;
    }
}
/* ===== Основной контейнер ===== */
.restaurant-profile {
  min-height: 100vh;
  background-color: #1A1A1D;
  color: #F4F4F5;
  padding: 2rem 0;
}

.restaurant-profile__wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===== Шапка профиля ===== */
.restaurant-profile__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #252529;
  border: 1px solid #3A3A3E;
  border-radius: 12px;
  padding: 1.5rem;
}

.restaurant-profile__logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #3A3A3E;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.restaurant-profile__logo-placeholder { font-size: 2rem; }
.restaurant-profile__logo img { width: 100%; height: 100%; object-fit: cover; }

.restaurant-profile__header-info { flex: 1; }
.restaurant-profile__name {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #F4F4F5;
}
.restaurant-profile__description {
  margin: 0;
  color: #A1A1AA;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 600px;
}

/* ===== Сетка информации (4 блока) ===== */
.restaurant-profile__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 1.5rem;
}

/* Часы работы занимают всю 3-ю колонку и 2 строки */
.card--hours {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

/* Меню занимает 2 колонки во 2-й строке */
.card--menu {
  grid-column: 1 / span 2;
  grid-row: 2;
}

/* Список дней недели внутри высокого блока */
.work-hours__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1; /* Растягиваем на всю высоту карточки */
  justify-content: space-evenly; /* Равномерно распределяем 7 строк */
}

.work-hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #2D2D30;
  transition: background 0.2s ease;
}
.work-hours__row:hover { background: #2D2D30; border-radius: 4px; }
.work-hours__row:last-child { border-bottom: none; }

.work-hours__day {
  color: #F4F4F5;
  font-weight: 500;
  font-size: 0.9rem;
  min-width: 40px;
}
.work-hours__time {
  color: #A1A1AA;
  font-size: 0.9rem;
  font-family: monospace; /* Моноширинный для ровного выравнивания времени */
}

/* ===== Адаптив для планшетов и мобильных ===== */
@media (max-width: 900px) {
  .restaurant-profile__info-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .card--hours {
    grid-column: 1 / span 2;
    grid-row: auto;
  }
  .card--menu {
    grid-column: 1 / span 2;
    grid-row: auto;
  }
  .work-hours__list {
    justify-content: flex-start;
    gap: 0.4rem;
  }
}

@media (max-width: 600px) {
  .restaurant-profile__info-grid { grid-template-columns: 1fr; }
}

.card {
  background: #252529;
  border: 1px solid #3A3A3E;
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: #555; }

.card__title {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #F4F4F5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card__content { display: flex; flex-direction: column; gap: 0.5rem; }
.card__text, .card__link {
  margin: 0;
  color: #A1A1AA;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.card__link:hover { color: #60A5FA; text-decoration: underline; }

.work-hours__item { display: flex; justify-content: space-between; font-size: 0.9rem; }

/* ===== Общие секции ===== */
.section {
  background: #252529;
  border: 1px solid #3A3A3E;
  border-radius: 10px;
  padding: 1.5rem;
}
.section__title {
  margin: 0 0 1.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #F4F4F5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section__empty {
  color: #6B7280;
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-style: italic;
}

/* ===== Столики (полная ширина) ===== */
.restaurant-profile__tables {
  background: #252529;
  border: 1px solid #3A3A3E;
  border-radius: 10px;
  padding: 1.5rem;
}

.tables-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.table-card {
  background: #1A1A1D;
  border: 1px solid #3A3A3E;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.table-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  border-color: #555;
}

.table-card__image {
  height: 220px;
  background: #2D2D30;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.table-card__image img { width: 100%; height: 100%; object-fit: cover; }
.table-card__image span { font-size: 3.5rem; opacity: 0.4; }

.table-card__info { padding: 1rem 1rem 0.75rem; flex: 1; }
.table-card__number {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F4F4F5;
}
.table-card__desc {
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  color: #A1A1AA;
  line-height: 1.5;
  min-height: 2.5em;
}

.table-card__actions {
  padding: 0 1rem 1rem;
}
.table-card__actions .restaurant__btn { width: 100%; }

/* ===== Кнопки (переименовано в restaurant__btn) ===== */
.restaurant__btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.restaurant__btn:focus-visible { outline: 2px solid #60A5FA; outline-offset: 2px; }
.restaurant__btn--primary { background: #3B82F6; color: #fff; }
.restaurant__btn--primary:hover { background: #2563EB; transform: scale(1.02); }
.restaurant__btn--secondary { background: transparent; border: 1px solid #3A3A3E; color: #A1A1AA; }
.restaurant__btn--secondary:hover { background: #2D2D30; color: #F4F4F5; border-color: #555; }
.restaurant__btn--sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

/* ===== Адаптив ===== */
@media (max-width: 768px) {
  .restaurant-profile__header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .restaurant-profile__name { font-size: 1.5rem; }
  .tables-list { grid-template-columns: 1fr; }
}

/* === ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ === */
.restaurant-menu__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 16px 4px; /* Отступ снизу, чтобы скроллбар не обрезался */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    /* height: 260px; Фиксированная высота блока */
}

/* Карточка изображения */
.restaurant-menu__item {
    flex: 0 0 180px; /* Фиксированная ширина, не сжимается */
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Изображение внутри карточки */
.restaurant-menu__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Кастомный скроллбар (WebKit/Chrome/Safari/Edge) */
.restaurant-menu__grid::-webkit-scrollbar {
    height: 6px;
}
.restaurant-menu__grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.restaurant-menu__grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.restaurant-menu__grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (min-width: 640px) {
    .restaurant-menu__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .restaurant-menu__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.restaurant-menu__img:hover {
    transform: scale(1.05);
}

/* Состояние ошибки загрузки */
.restaurant-menu__item:has(.restaurant-menu__img--error) {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
}

.restaurant-menu__item:has(.restaurant-menu__img--error)::after {
    content: "Изображение недоступно";
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    padding: 8px;
}

/* === ЛАЙТБОКС === */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    animation: lightboxFadeIn 0.2s ease-out;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    object-fit: contain;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* === ИНТЕРАКТИВ СЕТКИ === */
.restaurant-menu__item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.restaurant-menu__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
/* Обёртка для заголовка и инфы о гостях */
.table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.table-card__number {
    margin: 0;
    /* Наследует базовый размер шрифта карточки */
}

.table-card__guests {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    /* Цвет адаптируется под тему: в тёмной #94a3b8, в светлой #64748b */
    color: var(--text-muted, #94a3b8);
    opacity: 0.85;
}

/* Иконка внутри span наследует текущий цвет текста */
.table-card__guests svg {
    color: currentColor;
}
.message {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  animation: msgSlideIn 0.25s ease;
  max-width: 90vw;          
  text-align: center;       
}

.message--success { background: #22c55e; }
.message--error   { background: #ef4444; }

@keyframes msgSlideIn {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
/* =========================================
   BOOK TABLE MODAL - DARK THEME
   Цветовая палитра: #1A1A1D (body), #252529 (modal)
   ========================================= */

/* --- Оверлей (фон) --- */
.book-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: bookFadeIn 0.2s ease;
}

/* --- Контейнер модалки --- */
.book-modal {
    background: #252529;
    border: 1px solid #3a3a3e;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    animation: bookSlideUp 0.3s ease;
    color: #e0e0e0;
    font-family: inherit;
}

/* --- Шапка --- */
.book-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #3a3a3e;
    position: sticky;
    top: 0;
    background: #252529;
    z-index: 10;
}

.book-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.book-modal__close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.book-modal__close:hover {
    background: #3a3a3e;
    color: #ffffff;
}

/* --- Форма --- */
.book-modal__form {
    padding: 24px;
}

/* Ошибка */
.book-modal__error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #451a1a;
    color: #fca5a5;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #7f1d1d;
    line-height: 1.4;
}

/* Группы полей */
.book-modal__group {
    margin-bottom: 18px;
}

.book-modal__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 8px;
}

/* Обёртка инпута с иконкой */
.book-modal__input-wrapper {
    position: relative;
}

.book-modal__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    transition: color 0.2s;
}
.book-modal__icon--top {
    top: 16px;
    transform: none;
}

/* Поля ввода */
.book-modal__input,
.book-modal__textarea {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: #1a1a1d;
    border: 1px solid #3a3a3e;
    border-radius: 10px;
    font-size: 15px;
    color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.book-modal__input:focus,
.book-modal__textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.book-modal__input:focus + .book-modal__icon,
.book-modal__textarea:focus + .book-modal__icon {
    color: #6366f1;
}

.book-modal__textarea {
    resize: vertical;
    min-height: 70px;
    padding-top: 14px;
}

/* Сетка для имени и почты */
.book-modal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Подсказки */
.book-modal__hint {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 6px;
}

/* --- Время (сетка) --- */
.book-modal__time-grid {
    display: flex;
    align-items: center;
    gap: 10px;
}
.book-modal__time-separator {
    color: #6b7280;
    font-weight: 500;
    user-select: none;
}

/* --- Блок занятых слотов --- */
.book-modal__busy {
    background: #1f1f23;
    border: 1px solid #3a3a3e;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.book-modal__busy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.book-modal__busy-title {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}

.book-modal__loading {
    font-size: 12px;
    color: #6366f1;
    animation: pulse 1.5s infinite ease-in-out;
}

.book-modal__busy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.book-modal__busy-item {
    background: #3a3a3e;
    color: #fca5a5;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.book-modal__busy-empty {
    font-size: 13px;
    color: #22c55e;
    font-weight: 500;
}

/* --- Кнопки действий --- */
.book-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.book-modal__btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.book-modal__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.book-modal__btn--primary {
    background: #6366f1;
    color: #ffffff;
}
.book-modal__btn--primary:hover:not(:disabled) {
    background: #4f46e5;
    transform: translateY(-1px);
}

.book-modal__btn--secondary {
    background: #3a3a3e;
    color: #e0e0e0;
}
.book-modal__btn--secondary:hover:not(:disabled) {
    background: #4b4b50;
    transform: translateY(-1px);
}

/* --- Анимации --- */
@keyframes bookFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bookSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Скроллбар (тёмная тема) --- */
.book-modal::-webkit-scrollbar {
    width: 6px;
}
.book-modal::-webkit-scrollbar-track {
    background: #1a1a1d;
}
.book-modal::-webkit-scrollbar-thumb {
    background: #3a3a3e;
    border-radius: 3px;
}
.book-modal::-webkit-scrollbar-thumb:hover {
    background: #4b4b50;
}

/* --- Адаптивность --- */
@media (max-width: 480px) {
    .book-modal {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .book-modal__header {
        padding: 16px 20px;
    }
    
    .book-modal__form {
        padding: 20px;
    }
    
    .book-modal__row {
        grid-template-columns: 1fr;
    }
    
    .book-modal__time-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .book-modal__time-separator {
        display: none;
    }
    
    .book-modal__actions {
        flex-direction: column;
    }
    
    .book-modal__btn {
        width: 100%;
    }
}

/* --- Утилиты для фокуса (a11y) --- */
.book-modal__input:focus-visible,
.book-modal__textarea:focus-visible,
.book-modal__btn:focus-visible,
.book-modal__close:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}
.btn {
  display: block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  width: 100%;
}

/* Success (Открыто) */
.btn.success {
  border: 2px solid #00910c;
  color: #00910c;
}
.btn.success.active {
  background: #00910c;
  color: #fff;
}

.btn.success:hover {
  background: #00910c;
  color: #fff;
}

/* Danger (Закрыто) */
.btn.danger {
  border: 2px solid #d90000;
  color: #d90000;
}
.btn.danger.active {
  background: #d90000;
  color: #fff;
}

/* Light (Найти белая) */
.btn.light {
  border: 2px solid #000;
  color: #000;
}
.btn.light.active {
  background: #fff;
  color: #000;
}

/* Dark (Найти чёрная) */
.btn.dark {
  border: 2px solid #fff;
  color: #fff;
}
.btn.dark.active {
  background: #000;
  color: #fff;
}

.btn.dark:hover {
  background: #fff;
  color: #000;
}

.searchbar {
  background: #000;
  color: #fff;
  border-radius: 20px;
  padding: 24px;
}

.searchbar-container {
  width: 70%;
  margin: auto;
}

.searchbar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.searchbar__title {
  font-size: 22px;
  font-weight: bold;
}

.searchbar__input {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 16px 16px;
  width: 100%;
}

.searchbar__input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: #000;
}

.searchbar__input .icon {
  margin-right: 8px;
  color: #1a1a1a;
}

.searchbar__row {
  display: grid;
  grid-template-columns: 3fr 1fr;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}

.searchbar__filters {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

@media (max-width: 768px) {
  .searchbar-container {
    width: 90%;
  }
  .searchbar {
    padding: 20px;
  }
  .searchbar__title {
    font-size: 20px;
  }
  .searchbar__row {
    display: flex;
    flex-direction: column;
  }
  .searchbar__input input {
    font-size: 15px;
  }
}

/* Смартфоны (до 480px) */
@media (max-width: 480px) {
  .searchbar-container {
    width: 100%;
    margin: 0;
    padding: 0 8px; /* Минимальные отступы от краев экрана */
  }
  .searchbar {
    padding: 14px;
    border-radius: 14px;
  }
  .searchbar__title {
    font-size: 18px;
    text-align: center;
  }
  .searchbar__input {
    padding: 12px;

  }
  .searchbar__input input {
    font-size: 16px; 
  }
  .searchbar__row {
    grid-template-columns: 1fr; /* Поле и кнопка/фильтр встают вертикально */
    gap: 10px;
  }
  .searchbar__filters {
    flex-direction: column;
    align-items: stretch;
  }
  .searchbar__filters > * {
    width: 100%;
    justify-content: center; /* Если это кнопки/селекты */
  }
}

/* ===== Контейнер карточки ===== */
.user {
  padding: 0.5rem 0;
  border-bottom: 1px solid #3a3a3e;
  background: transparent;
  transition: background-color 0.2s ease;
}

.user:last-child {
  border-bottom: none;
}

/* ===== Карточка пользователя (основной блок) ===== */
.user__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #252529; /* Контрастный фон карточки */
  border: 1px solid #3a3a3e;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.user__wrapper:hover {
  background: #2d2d30;
  border-color: #555;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== Блок с информацией ===== */
.user__info {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 6fr 8fr 2fr;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

/* ID пользователя */
.user__key {
  font-family: monospace;
  font-size: 0.875rem;
  color: #a1a1aa; /* gray-400 */
  background: #1a1a1e;
  border: 1px solid #3a3a3e;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  min-width: 4rem;
  max-width: 8rem;
  width: max-content;
  text-align: center;
  user-select: none;
}

/* Имя пользователя */
.user__name {
  font-weight: 500;
  color: #f4f4f5; /* gray-100 */
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* max-width: 200px; */
}

/* Роль пользователя */
.user__role {
  font-size: 0.875rem;
  color: #f4f4f5;
  background: #3a3a3e;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  user-select: none;
  border: 1px solid #555;
  max-width: fit-content;
  margin-left: auto
}

/* ===== Email пользователя ===== */
.user__email {
  font-size: 0.875rem;
  color: #a1a1aa; /* gray-400 — вторичный текст */
  font-family: monospace; /* Моноширинный для читаемости email */
  background: #1a1a1e;
  border: 1px solid #3a3a3e;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min-content;
  user-select: all; /* Удобно копировать */
  transition: all 0.15s ease;
  cursor: pointer;
}

/* Hover-эффект: подсветка при наведении */
.user__email:hover {
  color: #f4f4f5;
  background: #252529;
  border-color: #555;
}

/* Клик: визуальный отклик */
.user__email:active {
  transform: scale(0.98);
}

/* Фокус для доступности (клавиатура) */
.user__email:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Модификаторы ролей */
.user__role[data-role="ADM"] {
  background: #1e3a5f; /* Тёмно-синий для админа */
  color: #93c5fd;
  border-color: #3b82f6;
}

.user__role[data-role="MOD"] {
  background: #3f3f46; /* Тёмно-серый для модера */
  color: #d4d4d8;
  border-color: #71717a;
}

.user__role[data-role="USR"] {
  background: #27272a; /* Нейтральный для пользователя */
  color: #a1a1aa;
  border-color: #3f3f46;
}

/* ===== Кнопки действий ===== */
.user__buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.user__btn {
  width: 36px;
  height: 36px;
  padding: 6px;
  color: #a1a1aa; /* gray-400 */
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
}

/* Hover-эффекты для кнопок */
.user__btn:hover {
  background: #3a3a3e;
  color: #f4f4f5;
  border-color: #555;
  transform: scale(1.05);
}

/* Редактирование — синий акцент */
.user__btn:first-of-type:hover {
  color: #60a5fa;
  background: #1e3a5f;
  border-color: #3b82f6;
}

/* Удаление — красный акцент */
.user__btn:last-of-type:hover {
  color: #f87171;
  background: #451a1a;
  border-color: #ef4444;
}

/* Active-состояние */
.user__btn:active {
  transform: scale(0.95);
}

/* ===== Адаптив для мобильных ===== */
@media (max-width: 640px) {
  .user__wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }

  .user__email {
    max-width: 200px;
    font-size: 0.8rem;
  }

  .user__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    justify-content: center;
    align-items: start;
  }

  .user__role {
    margin-left: 0;
  }

  .user__name {
    max-width: 150px;
  }

  .user__buttons {
    align-self: flex-end;
    flex-direction: column;
  }
}

/* ===== Доступность ===== */
.user__btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* ===== Анимация появления ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.user {
  animation: fadeIn 0.25s ease-out;
}
.admin {
    margin-top: 50px;
}

/* ===== Кнопка добавления пользователя ===== */
.admin__add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 10px 20px;
  background: #252529;
  border: 1px dashed #3A3A3E;
  border-radius: 8px;
  color: #A1A1AA;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.admin__add-btn:hover {
  background: #2D2D30;
  border-color: #60A5FA;
  color: #F4F4F5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.admin__add-btn:active {
  transform: translateY(0) scale(0.98);
}

.admin__add-btn:focus-visible {
  outline: 2px solid #60A5FA;
  outline-offset: 2px;
}

.admin__add-btn svg {
  transition: transform 0.2s ease;
}

.admin__add-btn:hover svg {
  transform: scale(1.15);
}

/* Адаптив: на мобильных кнопка на всю ширину */
@media (max-width: 640px) {
  .admin__add-btn {
    width: 100%;
    justify-content: center;
  }
}
/* ===== Оверлей (затемнённый фон) ===== */
.admin-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  animation: fadeInOverlay 0.2s ease-out;
}

/* ===== Само окно модалки ===== */
.admin-modal {
  background: #252529;
  border: 1px solid #3A3A3E;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  outline: none; /* react-modal по умолчанию добавляет outline, убираем его */
  animation: slideInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Кнопка закрытия (крестик) ===== */
.admin-modal__close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #A1A1AA;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.admin-modal__close-btn:hover {
  background: #3A3A3E;
  color: #F4F4F5;
}
.admin-modal__close-btn:focus-visible {
  outline: 2px solid #60A5FA;
  outline-offset: 2px;
}

/* ===== Заголовки и текст ===== */
.admin-modal__title {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #F4F4F5;
  padding-right: 24px; /* Чтобы текст не наезжал на крестик */
}
.admin-modal__text {
  margin: 0 0 24px 0;
  color: #A1A1AA;
  line-height: 1.6;
  font-size: 0.95rem;
}
.admin-modal__highlight {
  color: #F4F4F5;
  font-weight: 500;
  background: #3A3A3E;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===== Форма ===== */
.admin-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 0.875rem;
  color: #A1A1AA;
  font-weight: 500;
}
.form-input,
.form-select {
  width: 100%;
  padding: 10px 12px;
  background: #1A1A1D;
  border: 1px solid #3A3A3E;
  border-radius: 6px;
  color: #F4F4F5;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input::placeholder {
  color: #555;
}
.form-input:focus,
.form-select:focus {
  border-color: #60A5FA;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
  outline: none;
}

/* Кастомная стрелка для селекта */
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23A1A1AA%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpolyline points=%276 9 12 15 18 9%27%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}

/* ===== Блок кнопок (режим удаления) ===== */
.admin-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

/* ===== Универсальные кнопки ===== */
.admin__btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.admin__btn:focus-visible {
  outline: 2px solid #60A5FA;
  outline-offset: 2px;
}
.admin__btn--primary {
  background: #3B82F6;
  color: #fff;
}
.admin__btn--primary:hover {
  background: #2563EB;
}
.admin__btn--primary:active {
  transform: scale(0.98);
}

.admin__btn--secondary {
  background: transparent;
  border: 1px solid #3A3A3E;
  color: #A1A1AA;
}
.admin__btn--secondary:hover {
  background: #2D2D30;
  color: #F4F4F5;
  border-color: #555;
}

.admin__btn--danger {
  background: #EF4444;
  color: #fff;
}
.admin__btn--danger:hover {
  background: #DC2626;
}
.admin__btn--danger:active {
  transform: scale(0.98);
}

/* ===== Анимации появления ===== */
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInModal {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Адаптив для мобильных ===== */
@media (max-width: 540px) {
  .admin-modal {
    max-width: 92%;
    padding: 20px 16px;
    margin: 16px;
  }
  .admin-modal__actions {
    flex-direction: column-reverse;
  }
  .admin__btn {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
}
/* src/components/ErrorPage.css */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 10vh);
  font-family: sans-serif;
}

.error-wrapper {
  display: flex;
  justify-content: center;
}

.error-content {
  text-align: center;
  background: #222; /* немного светлее фона — создаёт мягкий контраст */
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* чуть более заметная тень на тёмном фоне */
  max-width: 500px;
  width: 100%;
  color: #e0e0e0; /* базовый цвет текста — светло-серый */
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1;
  color: #ff6b6b; /* мягкий акцентный красный для иконки ошибки */
}

.error-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff; /* белый или почти белый для заголовка */
  margin: 0 0 1rem 0;
}

.error-message {
  font-size: 1.1rem;
  color: #bbb; /* чуть мягче, чем основной текст */
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.error-button {
  background: #27567c; /* более мягкий, современный синий (из цветовой палитры тёмных тем) */
  color: white;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.error-button:hover {
  background: #339af0; /* чуть темнее при наведении */
}

.error-button:active {
  transform: translateY(1px);
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
  .error-content {
    padding: 2rem 1.5rem;
  }

  .error-title {
    font-size: 1.5rem;
  }

  .error-icon {
    font-size: 3rem;
  }
}
/* Restaurant.css */

.restaurant-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    text-decoration: none;
}

.card-wrapper {
    display: flex;
    align-items: start;
    flex-direction: column;
    row-gap: 12px;
}

.info-wrapper {
    display: flex;
    align-items: start;
    column-gap: 20px;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    outline: 3px solid #00910c;
    outline-offset: -3px;
    cursor: pointer;
}

.restaurant-card__logo {
    max-width: 180px;
    height: auto;
    aspect-ratio: 1 / 1; /* Делает высоту равной ширине */
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.restaurant-card__header {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1rem;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.restaurant-card__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
}

.restaurant-card__status {
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.restaurant-card__status.open {
    background-color: #10b981;
    color: white;
}

.restaurant-card__status.closed {
    background-color: #ef4444;
    color: white;
}

.restaurant-card__description {
    text-align: left;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.restaurant-card__section {
    margin-bottom: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    width: 100%;
}

.restaurant-card__section:last-child {
    margin-bottom: 0;
}

.restaurant-card__section-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.restaurant-card__text {
    margin: 0;
    color: #4b5563;
    text-align: right;
}

.restaurant-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.restaurant-card__list-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
}

.restaurant-card__list-item:last-child {
    border-bottom: none;
}

.restaurant-card__icon {
    font-size: 1rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .restaurant-card {
        padding: 1.5rem;
    }
    
    .restaurant-card__title {
        font-size: 1.5rem;
    }
    
    .restaurant-card__logo {
        max-width: 140px;
    }
}
body {
    background-color: #1A1A1D;
}

/* RestaurantList.css */

.restaurant-list {
    margin-top: 50px;
}

.list-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.restaurant-list__loading,
.restaurant-list__error,
.restaurant-list__empty {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1.125rem;
    color: #9ca3af;
}

.restaurant-list__error {
    color: #ef4444;
}
.moderator {
    padding: 24px 0 40px;
    min-height: 100vh;
    background-color: #f4f4f5;
}

.mod-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Шапка */
.mod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.mod-header__title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}

.mod-header__name {
    font-size: 15px;
    color: #f4f4f5;
    background: #424e5e;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* Карточка информации */
.mod-info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mod-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.mod-info__item {
    font-size: 15px;
    color: #334155;
    line-height: 1.5;
}

.mod-info__item strong {
    color: #0f172a;
    margin-right: 4px;
}

/* Сетка действий */
.mod-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.mod-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mod-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mod-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.mod-card__desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.mod-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Кнопки */
.mod-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mod-btn--primary { background: #2563eb; color: #fff; }
.mod-btn--primary:hover { background: #1d4ed8; }

.mod-btn--secondary { background: #e2e8f0; color: #334155; }
.mod-btn--secondary:hover { background: #cbd5e1; }

.mod-btn--danger { background: #ef4444; color: #fff; }
.mod-btn--danger:hover { background: #dc2626; }

/* Футер */
.mod-footer {
    text-align: right;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.mod-empty {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
    font-size: 16px;
}

/* Адаптив */
@media (max-width: 768px) {
    .mod-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .mod-actions-grid { grid-template-columns: 1fr; }
    .mod-card__actions { flex-direction: column; }
    .mod-btn { width: 100%; }
}

/* Сетка основной информации: 2 колонки */
.mod-info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start; /* Колонки не растягиваются до высоты самой длинной */
}

.mod-info__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Компактная сетка расписания внутри правой колонки */
.mod-schedule {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки для дней */
    gap: 8px;
    margin-top: 8px;
}

.mod-schedule__item {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
}

.mod-schedule__day {
    font-weight: 600;
    color: #0f172a;
    font-size: 13px;
}

.mod-schedule__time {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

/* Адаптив: на планшетах и телефонах всё встаёт в 1 колонку */
@media (max-width: 768px) {
    .mod-info__grid {
        grid-template-columns: 1fr;
    }
}

/* Адаптив для узких экранов */
@media (max-width: 480px) {
    .mod-schedule {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === СПИСОК СТОЛОВ === */
.mod-tables-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-top: 24px;
}

.mod-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.mod-table-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafbfc;
    transition: box-shadow 0.2s ease;
}
/* Обёртка изображения */
.mod-table-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 12px;
}

.mod-table-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mod-table-img-placeholder {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    background: #e6e6e6;
}

.mod-table-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mod-table-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mod-table-number {
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
}
.mod-table-guests {
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}
.mod-table-notes {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin-top: 2px;
}

.mod-table-actions {
    display: flex;
    gap: 8px;
    margin-top: auto; /* Прижимает кнопки к низу карточки */
}
.mod-table-actions .mod-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
}

/* Адаптив для списка столов */
@media (max-width: 640px) {
    .mod-tables-grid { grid-template-columns: 1fr; }
    .mod-table-actions { flex-direction: column; }
}
/* Оверлей */
.mod-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: modFadeIn 0.2s ease;
}

.mod-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modSlideUp 0.3s ease;
}

.mod-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.mod-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.mod-modal__close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}
.mod-modal__close:hover { background: #f1f5f9; color: #0f172a; }

.mod-modal__form { padding: 24px; }
.mod-modal__group { margin-bottom: 16px; }

.mod-modal__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.mod-modal__input, .mod-modal__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.mod-modal__input:focus, .mod-modal__textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.mod-modal__textarea { resize: vertical; min-height: 80px; }

.mod-modal__error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
}

/* Кастомный инпут файла */
.mod-modal__file-wrapper { position: relative; }
.mod-modal__file-input { display: none; }
.mod-modal__file-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s;
}
.mod-modal__file-label:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f8fafc;
}

.mod-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.mod-modal__actions .mod-btn { flex: 1; }

/* Анимации */
@keyframes modFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) {
    .mod-modal { max-width: 100%; }
    .mod-modal__actions { flex-direction: column; }
}

.mod-modal__preview {
    margin: 8px 0;
    padding: 12px;
    border: 1px dashed var(--border-color, #cbd5e1);
    border-radius: 8px;
    text-align: center;
    background: var(--bg-secondary, #f8fafc);
}

.mod-modal__preview-img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 4px;
    object-fit: cover;
    margin-bottom: 8px;
}

.mod-modal__preview-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted, #64748b);
    line-height: 1.4;
}
/* Сетка меню — адаптивная, как mod-actions-grid */
.mod-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.mod-menu-item {
    position: relative;
    aspect-ratio: 3/4;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary, #f8fafc);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
}

.mod-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mod-menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mod-menu-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s;
}

.mod-menu-item:hover .mod-menu-overlay {
    opacity: 1;
}

/* Лайтбокс — полноэкранный, без конфликтов */
.mod-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.mod-lightbox {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.mod-lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mod-lightbox__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.mod-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mod-lightbox__caption {
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: 14px;
    margin-top: 12px;
}

/* Адаптив */
@media (max-width: 640px) {
    .mod-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .mod-lightbox__close {
        top: -36px;
        right: -8px;
    }
}
/* Контейнер обновления */
.mod-update-card { border: 2px solid var(--accent, #3b82f6); }
.mod-update__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mod-update__close { background: none; border: none; cursor: pointer; color: #64748b; padding: 4px; border-radius: 50%; transition: 0.2s; }
.mod-update__close:hover { background: #f1f5f9; color: #0f172a; }

/* Секции и инпуты */
.mod-update__section { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
.mod-update__section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mod-update__section-title { font-size: 16px; font-weight: 600; color: #0f172a; margin-bottom: 10px; }
.mod-update__hint { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.mod-update__group { margin-bottom: 10px; }
.mod-update__input {
  width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px;
  font-size: 14px; transition: border-color 0.2s;
}
.mod-update__input:focus { border-color: #3b82f6; outline: none; }

/* Файлы */
.mod-update__file-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mod-update__preview { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #e2e8f0; }
.mod-update__preview-wrapper { position: relative; }
.mod-update__remove { position: absolute; top: -6px; right: -6px; background: #ef4444; color: white; border: none; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Меню сетка */
.mod-update__menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 8px; }
.mod-update__menu-item { position: relative; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; background: #f8fafc; }
.mod-update__menu-item img { width: 100%; height: 100%; object-fit: cover; }
.mod-update__menu-badge { position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,0.6); color: white; font-size: 10px; padding: 2px 4px; border-radius: 4px; }
.mod-update__menu-remove { position: absolute; top: 2px; right: 2px; background: rgba(239,68,68,0.9); color: white; border: none; border-radius: 4px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Кнопки */
.mod-update__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.mod-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Секция заголовок + кнопка */
.mod-update__section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mod-btn--text { background: none; border: none; color: #3b82f6; font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.mod-btn--text:hover { background: #eff6ff; }

/* Контакты */
.mod-update__contact-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.mod-update__select { padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; background: white; }
.mod-update__remove-btn { background: none; border: none; color: #ef4444; cursor: pointer; padding: 4px; border-radius: 4px; display: flex; align-items: center; }
.mod-update__remove-btn:hover { background: #fef2f2; }

/* График */
.mod-update__schedule-grid { display: grid; gap: 8px; }
.mod-update__schedule-row { display: flex; align-items: center; gap: 8px; }
.mod-update__day-name { min-width: 90px; font-size: 14px; color: #334155; font-weight: 500; }
.mod-update__time-input { width: 100px; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 14px; }
.mod-update__time-separator { color: #94a3b8; }

/* Адаптив */
@media (max-width: 640px) {
  .mod-update__contact-row { flex-wrap: wrap; }
  .mod-update__select { flex: 1; min-width: 120px; }
  .mod-update__input { flex: 2; min-width: 150px; }
}

/* Контейнер для центрирования */
.mod-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Карточка создания */
.mod-create-card { margin-top: 24px; }
.mod-create__header { margin-bottom: 20px; }
.mod-create__subtitle { color: #64748b; font-size: 14px; margin-top: 4px; }

/* Секции */
.mod-create__section { 
  margin-bottom: 24px; 
  padding-bottom: 20px; 
  border-bottom: 1px solid #e2e8f0; 
}
.mod-create__section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mod-create__section-title { 
  font-size: 16px; 
  font-weight: 600; 
  color: #0f172a; 
  margin-bottom: 12px; 
}

/* Группы полей */
.mod-create__group { margin-bottom: 12px; }
.mod-create__hint { 
  font-size: 12px; 
  color: #94a3b8; 
  margin-top: 6px; 
}

/* Адаптив для мобильных */
@media (max-width: 640px) {
  .mod-container { padding: 0 12px; }
  .mod-update__schedule-row { flex-wrap: wrap; gap: 4px; }
  .mod-update__day-name { min-width: 80px; }
  .mod-update__time-input { width: 90px; }
}
/* Карточка броней */
.mod-reserves-card { margin-top: 24px; }
.mod-reserves__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mod-reserves__actions { display: flex; gap: 8px; }

/* Форма */
.mod-reserves__form { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
.mod-reserves__form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mod-reserves__group { margin-bottom: 8px; }

/* Список броней */
.mod-reserves__list { display: flex; flex-direction: column; gap: 12px; }
.mod-reserves__item { 
  display: grid; 
  grid-template-columns: 1fr auto; 
  gap: 12px; 
  padding: 12px; 
  border: 1px solid #e2e8f0; 
  border-radius: 8px; 
  background: #fff;
  transition: box-shadow 0.2s;
}
.mod-reserves__item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.mod-reserves__item-header { 
  grid-column: 1 / -1; 
  display: flex; 
  gap: 16px; 
  font-size: 13px; 
  color: #64748b;
}
.mod-reserves__item-date, .mod-reserves__item-time { display: flex; align-items: center; gap: 4px; }

.mod-reserves__item-body { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.mod-reserves__item-guest { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #0f172a; }
.mod-reserves__item-email { font-weight: 400; color: #64748b; font-size: 13px; }
.mod-reserves__item-table { display: flex; align-items: center; gap: 6px; color: #334155; }
.mod-reserves__item-guests { color: #64748b; }
.mod-reserves__item-notes { 
  margin: 4px 0 0; 
  font-size: 13px; 
  color: #64748b; 
  font-style: italic; 
  padding-left: 20px; 
}

.mod-reserves__item-actions { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  align-self: center; 
}
.mod-reserves__item-actions .mod-btn { padding: 6px 12px; font-size: 12px; }

/* Пустое состояние */
.mod-reserves__empty { 
  text-align: center; 
  padding: 32px 16px; 
  color: #64748b; 
}
.mod-reserves__empty-icon { margin-bottom: 12px; opacity: 0.5; }

/* Адаптив */
@media (max-width: 640px) {
  .mod-reserves__item { grid-template-columns: 1fr; }
  .mod-reserves__item-actions { flex-direction: row; justify-content: flex-end; }
  .mod-reserves__form-grid { grid-template-columns: 1fr; }
}

/* Навигация по датам */
.mod-reserves__date-nav { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  margin-bottom: 16px; 
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.mod-btn--icon { 
  min-width: 36px; 
  padding: 6px 12px; 
  font-size: 16px; 
  font-weight: 600;
}

.mod-reserves__date-display { 
  font-weight: 600; 
  color: #0f172a; 
  font-size: 15px;
  padding: 6px 12px;
}
.mod-reserves__date-display:hover { 
  background: #f1f5f9; 
  border-radius: 6px; 
}

.mod-reserves__date-input { 
  margin-left: auto; 
  padding: 6px 10px; 
  border: 1px solid #cbd5e1; 
  border-radius: 6px; 
  font-size: 14px;
  background: white;
  cursor: pointer;
}
.mod-reserves__date-input:hover { 
  border-color: #94a3b8; 
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
  .mod-reserves__date-nav { 
    flex-wrap: wrap; 
    justify-content: center; 
  }
  .mod-reserves__date-input { 
    margin-left: 0; 
    margin-top: 8px; 
    width: 100%; 
  }
}
.booking-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 10vh);
  font-family: sans-serif;
}

.booking-wrapper {
  display: flex;
  justify-content: center;
}

.booking-card {
  text-align: center;
  background: #222;
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  color: #e0e0e0;
}

.booking-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.booking-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem 0;
}

.booking-message {
  font-size: 1.1rem;
  color: #bbb;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.booking-button {
  background: #27567c;
  color: white;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  text-decoration: none;
  display: inline-block;
}

.booking-button:hover {
  background: #339af0;
}

.booking-button:active {
  transform: translateY(1px);
}

@media (max-width: 600px) {
  .booking-card {
    padding: 2rem 1.5rem;
  }
  .booking-title {
    font-size: 1.5rem;
  }
  .booking-icon {
    font-size: 3rem;
  }
}
