/* 
    ЦВЕТИК-АДМИН: ГЛАВНЫЙ СТИЛЬ 
    Структура:
    1. Глобальные настройки и Шрифт
    2. Каркас (Header, Sidebar, Content)
    3. Дашборд (Статистика и Плитки действий)
    4. Формы (Добавление и Редактирование)
    5. Таблицы (Список товаров и заказов)
    6. Компоненты (Алерты, Бейджи)
    7. Адаптивность (Медиа-запросы)
*/

/* --- 1. ГЛОБАЛЬНЫЕ НАСТРОЙКИ --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2d3436;
    background-color: #f4f7f6;
}

h1, h2, h3 { font-weight: 700; color: #2c3e50; }
a { transition: 0.3s; }

/* --- 2. КАРКАС ПРИЛОЖЕНИЯ --- */

/* Верхняя панель */
.main-header {
    background: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .logo {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

/* Кнопка выхода */
.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 6px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}
.logout-btn:hover { background: #c0392b; }

/* Основная обертка */
.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* Боковое меню */
.sidebar {
    width: 250px;
    background: #34495e;
    color: white;
}
.sidebar ul { list-style: none; }
.sidebar li a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    border-bottom: 1px solid #2c3e50;
}
.sidebar li a:hover { background: #1abc9c; }

/* Контентная область */
.content {
    flex: 1;
    padding: 30px;
}

/* --- 3. ДАШБОРД --- */

/* Сетка статистики (3 в ряд) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0 40px;
}

.stat-card {
    padding: 25px;
    border-radius: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon { font-size: 40px; opacity: 0.3; }
.stat-card .stat-label { display: block; font-size: 14px; text-transform: uppercase; opacity: 0.8; }
.stat-card .stat-value { display: block; font-size: 32px; font-weight: 700; }

/* Градиенты карточек */
.bg-gradient-pink   { background: linear-gradient(45deg, #e91e63, #ff80ab); }
.bg-gradient-purple { background: linear-gradient(45deg, #9c27b0, #ba68c8); }
.bg-gradient-orange { background: linear-gradient(45deg, #ff9800, #ffb74d); }

/* Плитки действий */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.action-tile {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3436;
    border: 1px solid #e0e0e0;
    position: relative;
}
.action-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3498db;
}
.tile-icon { font-size: 28px; margin-right: 15px; color: #3498db; }
.tile-text strong { display: block; font-size: 18px; }
.tile-text span { font-size: 13px; color: #b2bec3; }

/* Бейджи и анимации заказов */
.tile-badge {
    position: absolute; top: 15px; right: 15px;
    background: #ff7675; color: #fff; padding: 2px 8px; border-radius: 20px; font-size: 12px;
}
.pulse { animation: pulse-red 2s infinite; }
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 118, 117, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 118, 117, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 118, 117, 0); }
}

/* --- 4. ФОРМЫ (ADD / EDIT) --- */

.form-columns { display: flex; gap: 30px; align-items: flex-start; }
.form-main { flex: 2; }
.form-side { flex: 1; }

/* Поля ввода */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }

.admin-input, .admin-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}
.admin-input:focus { border-color: #3498db; outline: none; box-shadow: 0 0 0 3px rgba(52,152,219,0.1); }

/* Превью изображения (3:4) */
.current-image-preview {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}
.current-image-preview img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

/* Кнопки форм */
.btn-save-full {
    background: #27ae60; color: #fff; border: none; width: 100%;
    padding: 15px; border-radius: 8px; font-weight: bold; font-size: 16px; cursor: pointer;
}
.btn-save-full:hover { background: #219150; transform: translateY(-2px); }

/* Универсальный стиль для главных кнопок-ссылок */
/* Кнопка "Добавить товар" (Зеленая) */
.btn-add-product {
    background: #27ae60 !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: 0.3s;
}
.btn-add-product:hover {
    background: #219150 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Кнопка "Корзина" (Красная/Розовая) */
.btn-trash {
    background: #e91e63 !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: 0.3s;
}
.btn-trash:hover {
    background: #c2185b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Кнопка "Назад" */
.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #636e72;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
}
.btn-back-link:hover { color: #2d3436; }

/* Маркетинг-блок */
.marketing-card { border-top: 4px solid #e91e63 !important; }
.section-title { font-size: 16px; color: #e91e63; margin-bottom: 15px; }

/* Чекбоксы */
.checkbox-container { display: flex; align-items: center; gap: 10px; cursor: pointer; }

/* --- 5. ТАБЛИЦЫ (СПИСКИ) --- */

/* Стили для деталей заказа */
.order-details-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}
.order-details-info .info-row:last-child { border-bottom: none; }
.order-details-info .info-row strong { color: #888; font-weight: 500; }

.text-highlight { color: #e67e22; font-weight: bold; }
.phone-link { color: #3498db; text-decoration: none; font-weight: bold; }

.comment-block {
    flex-direction: column;
    background: #fff9e6;
    padding: 15px !important;
    border-radius: 8px;
    margin-top: 10px;
}
.comment-block p { margin-top: 5px; color: #2d3436; }

/* Карточка итога */
.total-card { border-top: 5px solid #2c3e50 !important; }
.total-label { font-size: 14px; color: #888; text-transform: uppercase; }
.total-price-large { font-size: 32px; font-weight: 800; color: #2c3e50; margin: 10px 0; }

.admin-card { background: #fff; border-radius: 12px; border: 1px solid #e0e0e0; overflow: hidden; }

.adaptive-table { width: 100%; border-collapse: collapse; }
.adaptive-table th { background: #f8f9fa; padding: 15px; text-align: left; font-size: 13px; color: #888; text-transform: uppercase; }
.adaptive-table td { padding: 15px; border-bottom: 1px solid #f1f1f1; vertical-align: middle; }

/* Миниатюры в таблицах */
.table-img-wrapper img {
    width: 50px; height: 66px; object-fit: cover; border-radius: 6px;
}

/* Кнопки действий */
.table-actions { display: flex; gap: 8px; justify-content: flex-end; }
.action-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; text-decoration: none;
}
.action-btn.edit { background: #e3f2fd; color: #1976d2; }
.action-btn.delete { background: #ffebee; color: #c62828; }

/* --- 6. КОМПОНЕНТЫ --- */

/* --- Стили статусов (Pills) --- */
.status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    white-space: nowrap;
}

/* Новый - Розовый (брендовый) */
.status-pill.new { 
    background: #fce4ec; 
    color: #d81b60; 
    border: 1px solid #f8bbd0; 
}

/* В работе - Оранжевый */
.status-pill.processing { 
    background: #fff3e0; 
    color: #e65100; 
    border: 1px solid #ffe0b2; 
}

/* Завершен - Зеленый */
.status-pill.completed { 
    background: #e8f5e9; 
    color: #2e7d32; 
    border: 1px solid #c8e6c9; 
}

/* Отменен - Серый/Красный */
.status-pill.cancelled { 
    background: #f5f5f5; 
    color: #616161; 
    border: 1px solid #e0e0e0; 
}

/* --- Исправление заголовка (Header) --- */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Центрируем по вертикали */
    margin-bottom: 25px;
    flex-wrap: nowrap; /* Запрещаем перенос на десктопе */
}

.header-left { flex: 1; }
.header-actions { margin-left: 20px; }

/* Медиа-запрос: переносим кнопку только на смартфонах (меньше 768px) */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .header-actions {
		display: flex;
		gap: 10px;
		align-items: center;
        margin-left: 0;
        width: 100%;
    }
    .header-actions .btn-save-full {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    .header-actions a {
        width: 100%;
        justify-content: center;
    }
}

/* Алерты */
.alert { padding: 15px; margin-bottom: 25px; border-radius: 8px; border: 1px solid transparent; }
.alert-success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }

/* Дополнительные цвета для статусов заказов */
.status-pill.processing { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; }
.status-pill.active { border: 1px solid #c8e6c9; }
.status-pill.hidden { border: 1px solid #ffcdd2; }

/* Выравнивание текста в ячейках */
.text-right { text-align: right; }

/* --- 7. АДАПТИВНОСТЬ --- */

/* Средние экраны (Планшеты) */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: 1fr; }
    .form-columns { flex-direction: column; }
    .form-main, .form-side { width: 100%; }
}

/* Маленькие экраны (Смартфоны) */
@media (max-width: 768px) {
    .admin-wrapper { flex-direction: column; }
    .sidebar { width: 100%; border-bottom: 2px solid #2c3e50; }
    .sidebar ul { display: flex; overflow-x: auto; white-space: nowrap; }
    .sidebar li a { border-bottom: none; border-right: 1px solid #2c3e50; }
    
    .content { padding: 15px; }
    
    /* Таблица в карточки */
    .adaptive-table thead { display: none; }
    .adaptive-table tr { display: block; background: #fff; border: 1px solid #eee; border-radius: 10px; margin-bottom: 15px; padding: 10px; }
    .adaptive-table td { display: flex; justify-content: space-between; align-items: center; border: none; padding: 8px 5px; }
    .adaptive-table td::before { content: attr(data-label); font-weight: bold; color: #888; font-size: 12px; }
    .table-actions { width: 100%; margin-top: 10px; border-top: 1px solid #eee; padding-top: 10px; }
}

@media (max-width: 480px) {
    .main-header .logo { font-size: 16px; }
    .display-4 { font-size: 2.5rem; }
}

/* Панель фильтров */
.filters-panel {
    padding: 20px;
    background: #fff;
    margin-bottom: 25px;
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap; /* Чтобы на планшетах они могли переноситься */
}

.filter-group {
    flex: 1;
    min-width: 150px; /* Чтобы поля не становились слишком узкими */
}

@media (max-width: 768px) {
    .filter-group {
        min-width: 100%; /* На мобилках каждое поле на всю ширину */
    }
}

/* Фикс иконки поиска в списке товаров */
.filter-group.search-box {
    position: relative; /* Обязательно, чтобы иконка не улетала */
    flex: 1.5; /* Даем поиску чуть больше места, чем остальным фильтрам */
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    z-index: 5;
    pointer-events: none; /* Чтобы клик проходил сквозь иконку в инпут */
}

.search-box .admin-input {
    padding-left: 35px !important; /* Освобождаем место слева под иконку */
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Адаптивность фильтров */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-actions {
        justify-content: space-between;
    }
    
    .filter-actions button, .filter-actions a {
        flex: 1;
        text-align: center;
    }
}


/* --- СТИЛИ КОНСТРУКТОРА СОСТАВА БУКЕТА --- */

#composition-section {
    border-top: 3px solid #3498db;
}

.comp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fdfdfd;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #eaeaea;
    transition: 0.2s;
}

.comp-item:hover {
    border-color: #3498db;
    background: #f7faff;
}

.comp-name {
    font-weight: 500;
    font-size: 14px;
    color: #2d3436;
}

.comp-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.qty-input {
    width: 75px !important;
    text-align: center;
    padding: 6px !important;
    font-weight: bold;
    border: 1px solid #ccc;
}

.btn-remove-comp {
    background: #ff7675;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.2s;
}

.btn-remove-comp:hover {
    background: #e17055;
    transform: scale(1.05);
}

/* Поиск цветов */
.search-flowers-wrap {
    position: relative;
    margin-top: 20px;
}

#flower-search {
    background-color: #ffffff !important; /* Теперь поле будет чисто белым */
    border: 2px solid #dcdde1;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#flower-search:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 1000;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.search-item:hover {
    background: #f0f7ff;
    color: #3498db;
}

.search-item b {
    color: #27ae60;
}

.d-none { display: none !important; }


/* Ссылка на просмотр товара в списке */
.product-name-link {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
}

.product-name-link:hover {
    color: #3498db; /* Наш фирменный синий при наведении */
    text-decoration: underline;
}

/* Сделаем мини-бейджи чуть аккуратнее рядом со ссылкой */
.mini-badge {
    margin-left: 5px;
    font-size: 10px;
    padding: 2px 6px;
    vertical-align: middle;
}

/* --- МОДУЛЬ: МЕДИАТЕКА (ФАЙЛОВЫЙ МЕНЕДЖЕР) --- */

.media-container {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Боковая панель с папками */
.media-sidebar {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 85px;
}

.media-sidebar h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.folder-list {
    list-style: none;
}

.folder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    border-radius: 8px;
    transition: 0.2s;
}

.folder-item a {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.folder-item:hover { background: #f0f2f5; }
.folder-item a.active { background: #3498db; color: #fff; border-radius: 8px; }

.delete-folder-btn {
    background: none;
    border: none;
    color: #ccc;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
.delete-folder-btn:hover { color: #e74c3c; }

/* Основная сетка файлов */
.media-main {
    flex: 1;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.media-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.media-preview {
    width: 100%;
    aspect-ratio: 3/4; /* Твой стандарт */
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-info {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #f1f1f1;
}

.media-name {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.media-file-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Кнопки внутри карточки файла */
.media-file-actions button, 
.media-file-actions a {
    background: #f1f2f6;
    border: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #576574;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}

.media-file-actions a:hover, 
.media-file-actions button:hover {
    background: #dfe4ea;
    color: #2c3e50;
}

.media-file-actions .text-danger:hover { background: #fee2e2; color: #ef4444; }
.media-file-actions .text-success:hover { background: #dcfce7; color: #22c55e; }

/* Модальные окна */
.modal-custom {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Адаптивность для мобилок */
@media (max-width: 992px) {
    .media-container { flex-direction: column; }
    .media-sidebar { width: 100%; position: static; }
    .folder-list { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 10px; }
    .folder-item { flex-shrink: 0; }
}

/* Кнопки действий для изображений */
.image-actions-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.btn-action-small {
    background: #f1f2f6;
    border: 1px solid #dcdde1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2f3640;
    transition: 0.2s;
}

.btn-action-small:hover {
    background: #dfe4ea;
    border-color: #ced6e0;
}

/* Сетка дополнительных фото */
.additional-previews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.extra-img-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #f9f9f9;
}

.extra-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Кнопка удаления превью */
.remove-extra {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.remove-extra:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Модалка выбора (уточнение размеров) */
#media-picker-modal .modal-content {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
}

.folder-select {
    cursor: pointer;
    border: 1px dashed #3498db !important;
}

/* Кнопка закрытия модалки "X" */
.modal-close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f2f6;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
    color: #2f3640;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-x:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

/* Бейджики на превью фото */
.img-type-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(52, 152, 219, 0.8);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    pointer-events: none;
}

.img-type-badge.library {
    background: rgba(46, 204, 113, 0.8);
}

/* Эффект для новых локальных фото */
.extra-img-item.local-new {
    border: 2px dashed #3498db;
}

/* Улучшаем заголовок в модалке */
.modal-header-area {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Переключатель-тумблер */
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.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: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #27ae60; }
input:checked + .slider:before { transform: translateX(20px); }

