/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #020617;
}

/* Selection styles */
::selection {
    background-color: #a7f3d0;
    color: #065f46;
}

/* Background container */
.bg-primary {
    position: relative;
    z-index: 1;
    background: transparent;
}

.blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: rgba(167, 243, 208, 0.4);
    filter: blur(120px);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: rgba(153, 246, 228, 0.4);
    filter: blur(120px);
}

.blob-3 {
    top: 20%;
    right: 20%;
    width: 30%;
    height: 30%;
    background: rgba(220, 252, 231, 0.5);
    filter: blur(80px);
}

/* Fullscreen WebGL background canvas */
#webGLApp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Navigation styles */
.nav {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(167, 243, 208, 0.3);
}

.logo-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}

.brand-text {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #f9fafb;
}

.text-emerald-600 {
    color: #059669;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #22c55e;
}

.nav-button {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: #059669;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.2);
}

.nav-button:hover {
    background: #047857;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.4);
}

/* Main content styles */
.main-content {
    position: relative;
    z-index: 10;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Hero section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    min-height: calc(100vh - 160px);
}

.hero-left {
    max-width: 42rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 300;
    color: #f9fafb;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    background: #059669;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.2);
}

.cta-button:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(5, 150, 105, 0.3);
}

.secondary-button {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    background: transparent;
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid #059669;
    transition: all 0.3s;
}

.secondary-button:hover {
    background: #059669;
    color: white;
}

/* Footer styles */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem 0 2rem;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.telegram-link {
    color: #22c55e;
    cursor: pointer;
}

.telegram-link:hover {
    text-decoration: underline;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    background: rgba(167, 243, 208, 0.8);
    color: #065f46;
}

.toast-error {
    background: rgba(254, 202, 202, 0.8);
    color: #991b1b;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button,
    .secondary-button {
        width: 100%;
        max-width: 200px;
    }
}

/* Улучшенные кнопки переключения месяцев */
.enhanced-toggle {
    background: transparent !important;
    border: 1px solid rgba(5, 150, 105, 0.2) !important;
    padding: 0.5rem !important;
}

.enhanced-toggle .toggle-btn {
    padding: 0.75rem 1.5rem !important;
    font-weight: 700 !important;
    border: 1px solid transparent !important;
}

.enhanced-toggle .toggle-btn.active {
    background: #059669 !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3) !important;
    border-color: #047857 !important;
}

/* Выравнивание колонок */
.align-start {
    align-items: start !important;
}

.time-column {
    margin-top: 0 !important;
}

.time-selector-adjusted {
    margin-top: 0 !important;
}

/* Улучшенная кнопка подтверждения */
.confirm-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 1rem !important;
}

/* Стили для модального окна обратной связи */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

/* Модальное окно конфликта без затемнения фона */
#conflictModal.modal {
    background: transparent;
    backdrop-filter: none;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    padding: 2rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #475569;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #059669;
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: #059669;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #047857;
}

/* Стили для футера */
/* Стили для футера */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

/* На внутренних страницах опускаем футер ближе к низу */
.my-bookings-page .footer,
.booking-page .footer {
    margin-top: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    order: 1; /* GlassBook будет посередине */
}

.footer-logo {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.footer-creator {
    font-size: 0.75rem;
    color: #64748b;
}

.footer-support {
    order: 0; /* Помощь и поддержка будет сверху */
}

.footer-support p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.footer-feedback {
    order: 2; /* Обратная связь будет снизу */
}

.feedback-btn {
    background: transparent;
    border: 1px solid #059669;
    color: #059669;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    font-weight: 500;
}

.feedback-btn:hover {
    background: #059669;
    color: white;
    transform: translateY(-1px);
}

.telegram-link {
    color: #059669;
    cursor: pointer;
    font-weight: 500;
}

.telegram-link:hover {
    text-decoration: underline;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .footer-content {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .footer-support p {
        font-size: 0.8rem;
    }
    
    .feedback-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Улучшенные стили для кнопки подтверждения */
.confirm-btn {
    height: 48px; /* Такая же высота как у поля ввода */
    border: none;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

/* Стили для поля ввода заметки */
.note-input {
    border: 1px solid rgba(5, 150, 105, 0.3);
    height: 48px;
}

.note-input:focus {
    border-color: rgba(5, 150, 105, 0.6);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Убедись что календарь правильно отображается */
.calendar-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Добавь в style.css */
.confirm-btn:not(:disabled) {
    background: rgba(5, 150, 105, 0.8) !important; /* Синий цвет */
    backdrop-filter: blur(8px);
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.confirm-btn:not(:disabled):hover {
    background: rgba(5, 150, 105, 0.9) !important; /* Темнее синий при наведении */
    box-shadow: 0 6px 16px rgba(3, 125, 53, 0.4) !important;
    transform: translateY(-2px);
}

/* Добавь в style.css */
#noteInput {
    border: 1px solid #019b53; /* Светло-зеленый */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

#noteInput:hover {
    border-color: #039b63; /* Зеленый при наведении */
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

#noteInput:focus {
    border-color: #038056; /* Ярко-зеленый при фокусе */
    background: rgba(0, 191, 25, 0.25);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    outline: none;
}

/* Добавь в конец style.css */
.booking-card {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 197, 94, 0.25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.booking-date {
    font-size: 18px;
    font-weight: 600;
    color: #e5f9f0;
}

.booking-details {
    margin-bottom: 15px;
}

.booking-day {
    font-size: 16px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 5px;
}

.booking-time {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.booking-note {
    font-style: italic;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.9);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #059669;
}

.cancel-btn {
    background: #e96e6e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
}

.cancel-btn:hover {
    background: #e62e2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 38, 38, 0.3);
}

/* Отступы между карточками */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Стили для контейнера кнопок */
.booking-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.booking-actions .cancel-btn,
.booking-actions .edit-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

/* Стили для кнопки отмены (оставляем существующие) */
.booking-actions .cancel-btn {
    background: #e96e6e;
    color: white;
}

.booking-actions .cancel-btn:hover {
    background: #e62e2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 38, 38, 0.3);
}

/* Стили для новой кнопки редактирования */
.booking-actions .edit-btn {
    background: #22c55e;
    color: #020617;
}

.booking-actions .edit-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}


#bookAnotherBtn {
    background: transparent;
    border: 1px solid #059669;
    color: #059669;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    font-weight: 500;
}

#bookAnotherBtn:hover {
    background: #059669;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

/* Зеленый success‑икон с сиянием */
.success-icon {
    background: #068c47;
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.35),
        0 0 40px rgba(34, 197, 94, 0.45),
        0 0 80px rgba(16, 185, 129, 0.35);
}

/* Уменьшение размера большой SVG иконки */
.w-20.h-20 {
    width: 11rem !important;
    height: 11rem !important;
}

.w-20.h-20 .w-10.h-10 {
    width: 8rem !important;  /* было 2.5rem (40px) */
    height: 8rem !important; /* было 2.5rem (40px) */
}

.w-16.h-16 {
    width: 11rem !important;
    height: 11rem !important;
}

.w-16.h-16 .w-10.h-10 {
    width: 8rem !important;  /* было 2.5rem (40px) */
    height: 8rem !important; /* было 2.5rem (40px) */
}

/* Стили для кнопки Забронировать первую сессию */
.first-session-btn {
    background: transparent;
    border: 1px solid #059669;
    color: #059669;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.875rem;
    font-weight: 500;
}

.first-session-btn:hover {
    background: #059669;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.footer-copyright {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    color: #64748b;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: #059669;
    text-decoration: underline;
}

.footer-spacer {
    height: 15vh;
}
/* Выравнивание карточек на одном уровне */
.grid.items-start {
    align-items: start !important;
}

.time-column {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.time-selector-adjusted {
    margin-top: 0 !important;
}

/* Убери эти стили или замени на: */
.time-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0;
}

.time-icon {
    width: 1rem;
    height: 1rem;
    color: #059669;
    flex-shrink: 0;
}

.time-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .calendar-container .time-header {
        margin-bottom: 0.75rem;
    }
    
    .calendar-container .time-title {
        font-size: 0.8rem;
    }
}

/* Стили для модалки подтверждения */
#cancelModal .modal-content {
    width: 90%;
    max-width: 400px;
    padding: 0;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#cancelModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#cancelModal .modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

#cancelModal .modal-body {
    padding: 1.5rem;
}

#cancelModal .modal-body p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

#cancelModal .modal-actions {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

#cancelModal .modal-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.875rem;
}

#cancelModal .modal-cancel {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #64748b;
}

#cancelModal .modal-cancel:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

#cancelModal .modal-confirm {
    background: #e96e6e;
    color: white;
}

#cancelModal .modal-confirm:hover {
    background: #e62e2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 38, 38, 0.3);
}

/* Стили для модалки конфликта времени/даты */
#conflictModal .modal-content {
    width: 90%;
    max-width: 400px;
    padding: 0;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#conflictModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#conflictModal .modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

#conflictModal .modal-body p {
    margin: 0;
    color: #1e293b;
    font-size: 1rem;
}

#conflictModal .modal-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}

#conflictModal .modal-btn.modal-ok {
    padding: 0.6rem 1.8rem;
    border-radius: 9999px;
    border: none;
    background: #059669;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.2);
    transition: all 0.25s ease;
}

#conflictModal .modal-btn.modal-ok:hover {
    background: #047857;
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

