header {
    background: transparent; /* Явно делаем фон прозрачным */
    /* background: rgba(0, 0, 0, 0.3); */ /* Альтернатива: легкое полупрозрачное затемнение, если текст плохо читается */

    height: 100px; /* Ваша высота шапки */
    color: white; /* Цвет текста в шапке */
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-image: url('/images/login.jpg'); /* Путь к картинке */
    background-size: cover; /* Картинка подстраивается под размеры экрана */
    background-position: center top; /* Центрируем и прижимаем к верху */
    background-repeat: no-repeat; /* Запрещаем повторение */
    background-attachment: fixed; /* Фиксируем фон (опционально, чтобы не крутился) */
    margin: 0; /* Убираем стандартные отступы браузера */
    /*background: #f0f2f5;*/
}

.container-login100 {
    width: 100%;
    min-height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: 1;
}

/* Контейнер для кнопок */
.btn-container {
    display: flex; /* Включаем Flexbox */
    flex-direction: row; /* Выстраиваем элементы в строку (по умолчанию) */
    gap: 12px; /* Расстояние между кнопками */
    justify-content: center; /* Выравнивание по левому краю (можно center или flex-end) */
    flex-wrap: wrap; /* Перенос на новую строку, если кнопки не помещаются на экране телефона */
    padding: 2px;
}

.btn-container2 {
    display: flex; /* Включаем Flexbox */
    flex-direction: column; /* Выстраиваем элементы в строку (по умолчанию) */
    gap: 12px; /* Расстояние между кнопками */
    justify-content: center; /* Выравнивание по левому краю (можно center или flex-end) */
    flex-wrap: wrap; /* Перенос на новую строку, если кнопки не помещаются на экране телефона */
    padding: 2px;
}

/* --- Стили графика (Базовые) --- */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-family: system-ui, -apple-system, sans-serif;
    background: #fff;
    min-width: 750px;
}

    .schedule-table th, .schedule-table td {
        border: 1px solid #e5e7eb;
        padding: 8px;
        text-align: center;
    }

    .schedule-table th {
        background-color: #4f46e5;
        color: white;
        font-weight: 600;
    }

.time-cell {
    background-color: #f9fafb;
    font-weight: bold;
    color: #4b5563;
    position: sticky;
    left: 0;
    z-index: 10;
}

.schedule-table td:not(.time-cell) {
    vertical-align: top;
    height: 60px;
    min-width: 60px;
}

.non-working-blocked {
    background-color: #f3f4f6; /* Светло-серый фон */
    color: #678bc9; /* Блеклый текст */
    cursor: not-allowed;
    pointer-events: none; /* Полностью отключает клики мышкой */
    opacity: 0.7;
}

.slot-blocked-text {
    font-size: 16px;
    text-align: center;
    font-style: italic;
}

.free {
    cursor: pointer;
}

    .free:hover {
        background-color: #f0fdf4 !important;
    }

.full {
    background-color: #fef2f2 !important;
    cursor: not-allowed;
}

.slot-counter {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-align: right;
    margin-bottom: 4px;
}

.full .slot-counter {
    color: #dc2626;
}

/* --- Плашки клиентов и кнопки --- */
.client-badge {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    padding: 4px 6px;
    margin: 6px 0;
    border-radius: 4px;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.full .client-badge {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.badge-controls {
    display: flex;
    gap: 4px;
}

.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    opacity: 0.6;
}

    .btn-action:hover {
        opacity: 1;
        transform: scale(1.15);
    }

.reschedule-active {
    outline: 2px dashed #2563eb !important;
    background-color: #dbeafe !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.add-hint {
    display: none;
    font-size: 1.1rem;
    color: #10b981;
    font-weight: 600;
    margin-top: 4px;
}

.free:hover .add-hint {
    display: block;
}

/* --- СТИЛИ МОДАЛЬНОГО ОКНА --- */
.modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

    .modal-overlay.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }
/* Показываем при добавлении класса */

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 550px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-family: system-ui, -apple-system, sans-serif;
}


.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
}

    .modal-close:hover {
        color: #374151;
    }

#modal-datetime-info {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 20px;
}

/* Элементы формы */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

    .form-group label {
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 5px;
    }

    .form-group input {
        width: 100%;
        padding: 10px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        box-sizing: border-box;
        font-size: 1.9rem;
    }

        .form-group input:focus {
            border-color: #4f46e5;
            outline: none;
        }

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

    .btn-submit:hover {
        background-color: #4338ca;
    }



/*МОДАЛЬНОЕ ОКНО ИСТОРИЯ КЛИЕНТА*/
/* Стили живого поиска */
.search-results-list {
    border: 1px solid #ddd;
    border-top: none;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
}

.search-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

    .search-item:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }

    .search-item.empty {
        color: #999;
        cursor: default;
    }

/* Стили истории */
.history-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.history-entry {
    padding: 10px;
    border-left: 3px solid #007bff;
    background: #fdfdfd;
    margin-bottom: 8px;
    border-radius: 0 4px 4px 0;
}

.history-date {
    font-weight: bold;
    font-size: 14px;
}

.history-comment {
    font-size: 13px;
    color: #555;
    margin-top: 3px;
}





