

.sub-title {
    font-size: 18px;
    margin-top: -10px;
}

.section-spacing {
    margin-top: 120px;
}

/* Стили для модального окна и затемнения фона */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.tablink {
    background-color: #f1f1f1;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.tablink.active {
    background-color: #007bff;
    color: white;
}

.tabcontent {
    display: none;
}

.tabcontent.active {
    display: block;
}

/* Блокировка прокрутки страницы при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

/* Стили для карточек настроек (ОБЪЕДИНЕНЫ) */
.settings-card {
    margin-bottom: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.settings-card h2 {
    margin-bottom: 25px;
    font-size: 28px;
    color: #0c5460;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    font-weight: 800;
}

.settings-card h3 {
    font-size: 20px;
    color: #0c5460;
    margin-bottom: 20px;
    font-weight: 700;
}

.settings-card label {
    font-weight: 800;
    margin-bottom: 8px;
    display: block;
    color: #0c5460;
    font-size: 18px;
}

.settings-card input,
.settings-card select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #1e2a3a;
}

.settings-card button {
    padding: 10px 20px;
    background-color: #0c5460;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 00;
}

.settings-card button:hover {
    background-color: #e9ecef;
}

/* Переключатель */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Сетка для настроек */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Информационный бейдж */
.info-badge {
    background: #0c5460;
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 16px;
    margin: 15px 0;
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.info-badge i {
    font-size: 20px;
    color: #007bff;
}

.info-badge strong {
    font-weight: 700;
}

/* Бейдж "Рекомендуется" */
.badge-recommended {
    background: #007bff;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Группа радио-кнопок */
.radio-group {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    flex: 1 1 200px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s;
    background: #fff;
}

.radio-option:hover {
    background: #f1f1f1;
    border-color: #007bff;
}

.radio-option input[type="radio"] {
    width: auto;
    margin-top: 3px;
}

.radio-content {
    flex: 1;
}

.radio-title {
    font-weight: 800;
    color: #0c5460;
    margin-bottom: 4px;
    font-size: 17px;
}

.radio-desc {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
}

/* Селектор заведений */
.establishment-selector {
    margin: 20px 0;
    padding: 15px;
    background: #dee2e6;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.establishment-selector label {
    font-weight: 100%;
    margin-bottom: 8px;
    display: block;
}

/* Счетчик столиков */
.table-counter {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.table-counter label {
    font-weight: 700;
    margin-bottom: 0;
}

.table-counter input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-weight: 500;
}

/* Группа переключателей */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e1e5e9;
}

.toggle-group:last-child {
    border-bottom: none;
}

.toggle-label {
    font-weight: 700;
    color: #0c5460;
    font-size: 14px;
}

.toggle-description {
    font-size: 12px;
    color: #6c757d;
    margin-top: 3px;
    font-weight: 400;
}

/* Кнопка сохранения */
.btn-save {
    padding: 12px 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.btn-save:hover {
    background-color: #0056b3;
}

/* Адаптивность */
@media (max-width: 992px) {
    .settings-card {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .settings-card {
        width: 95%;
        padding: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .radio-option {
        width: 100%;
    }
    
    .table-counter {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .settings-card {
        padding: 15px;
    }
    
    .settings-card h2 {
        font-size: 20px;
    }
    
    .settings-card h3 {
        font-size: 18px;
    }
}

.hidden {
    display: none !important;
}

 /* Дополнительные стили для яркости */
        .settings-card {
            border-left: 4px solid #1bb1dc;
            transition: all 0.3s ease;
        }
        
        .settings-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }
        
        .settings-card h2 {
            color: #0c5460;
            border-bottom: 2px solid #1bb1dc;
        }
        
        .settings-card h3 {
            color: #568f9f;
            margin-bottom: 15px;
        }
        
        .section-apply-btn {
            background: linear-gradient(#0c5460, #0c5460, #0c5460);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 8px 25px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 10px rgba(27, 177, 220, 0.3);
            margin-top: 15px;
        }
        
        .section-apply-btn:hover {
            background: linear-gradient(135deg, #0c9ae8, #1bb1dc);
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(27, 177, 220, 0.4);
        }
        
        .section-apply-btn i {
            font-size: 14px;
        }
        
        .block-footer {
            display: flex;
            justify-content: flex-end;
            margin-top: 20px;
            border-top: 1px solid #e1e5e9;
            padding-top: 20px;
        }
        
        .radio-option.selected {
            border-color: #1bb1dc;
            background: #b1eae9;
        }
        
        .badge-recommended {
            background: #0c5460;
        }
        
        .info-badge {
            border-left-color: #1bb1dc;
        }
        
        .info-badge i {
            color: #1bb1dc;
        }
        
        .btn-save {
            background: linear-gradient(135deg, #28a745, #218838);
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
            padding: 12px 40px;
            font-size: 16px;
        }
        
        .btn-save:hover {
            background: linear-gradient(135deg, #218838, #28a745);
            box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
        }
        
        /* Улучшенные поля ввода - теперь текст не обрезается */
        .settings-card input,
        .settings-card select {
            width: 100%;
            min-width: 200px;
            max-width: 100%;
            padding: 1px 1px;
            border: 2px solid #e1e5e9;
            border-radius: 5px;
            margin-bottom: 15px;
            font-weight: 500;
            color: #1e2a3a;
            background-color: #fff;
            box-sizing: border-box;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        /* Для селектов - текст не обрезается */
        .settings-card select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg fill='%230c5460' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
            background-repeat: no-repeat;
            background-position: right 10px center;
            padding-right: 40px;
            white-space: normal;
            word-wrap: break-word;
        }
        
        /* Контейнер для полей с фиксированной шириной */
        .input-fixed {
            width: 100%;
            max-width: 200px;
        }
        
        /* Для длинных текстов в radio */
        .radio-desc {
            word-break: break-word;
            white-space: normal;
        }
        
        /* Для селекта заведений */
        .establishment-selector select {
            width: 100%;
            max-width: 500px;
        }
        
        /* Счетчик столиков */
        .table-counter {
            display: flex;
            align-items: center;
            gap: 20px;
            margin: 15px 0;
            flex-wrap: wrap;
        }
        
        .table-counter input[type="number"] {
            width: 100px;
        }
        
        /* Адаптивность для мобильных */
        @media (max-width: 768px) {
            .input-fixed {
                max-width: 100%;
            }
            
            .settings-card select {
                white-space: normal;
                overflow: visible;
            }
        }
		.small, small {
    font-size: 1.1rem;  /* было ~12.8px, станет ~14.4px */
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.notification.success { background: #28a745; }
.notification.error { background: #dc3545; }
.notification.warning { background: #ffc107; color: #333; }
.notification.info { background: #17a2b8; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}