
        body {
            background-color: #f5f7fb;
            font-family: 'Inter', sans-serif;
        }

                    /* Небольшая анимация при наведении */
            .transition-all {
                transition: all 0.2s ease-in-out;
            }

            .btn:hover {
                transform: translateY(-1px);
                filter: brightness(1.05);
            }

            .btn:active {
                transform: translateY(0);
            }

    [data-bs-target="#collapseFilters"][aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    /* Плавный переход для иконки */
    [data-bs-target="#collapseFilters"] i {
        transition: transform 0.3s ease;
        display: inline-block;
        /* Обязательно для работы transform */
    }
    /* Родителю ОБЯЗАТЕЛЬНО оставляем relative */    .input-group-custom {
        position: relative; /* Ограничиваем список шириной инпута */
        width: 100%;
        display: block; /* Гарантируем, что контейнер не схлопнется */
    }

    .input-deff {
        width: 100%;
        height: 40px; /* Фиксированная высота для предсказуемости */
        padding: 8px 35px 8px 12px;
        font-size: 14px;
        border: 1px solid #ced4da;
        border-radius: 8px;
        background: #fff;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .input-deff:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
        outline: none;
    }

    /* Кнопка-крестик: всегда по центру инпута, независимо от списка */
    .clear_select_btn {
        position: absolute;
        right: 10px;
        top: 20px; /* Ровно половина от высоты инпута (40px) */
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #adb5bd;
        z-index: 5;
        padding: 0;
        display: flex;
        align-items: center;
    }
    

    /* Выпадающий список: решение проблемы со скроллом */
    .dropdown-content {

        z-index: 1000;

        /* Скрываем так, чтобы места не занимало */
        display: none; 
        
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        
        /* Скролл (ИСПРАВЛЕНО: padding только сверху/снизу) */
        max-height: 200px;
        overflow-y: auto;
        padding: 5px 0;
    }

    .dropdown-content.show {
        display: block;
        /* Время 0.5s и более мягкая кривая */
        animation: slideInCustom 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes slideInCustom {
        from {
            opacity: 0;
            /* Начинаем чуть ниже и меньше, чтобы движение было более заметным */
            transform: translateY(-15px) scale(0.96);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Элементы списка: убираем margin, используем только padding */
    .dropdown-content div {
        padding: 8px 15px;
        margin: 0; 
        cursor: pointer;
        font-size: 14px;
        color: #333;
        transition: background 0.1s;
    }

    .dropdown-content div:hover {
        background-color: #f8f9fa;
        color: #0d6efd;
    }
    

    /* Исправляем конфликт с Bootstrap Collapse */
    #collapseFilters, .card-body {
        overflow: visible !important;
    }

    /* Метки */
    .filter-label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        margin-bottom: 6px;
        margin-left: 2px;
    }


    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Метки полей стали меньше и жирнее */
    .filter-label {
        font-size: 0.75rem;
        letter-spacing: 0.03em;
        margin-bottom: 4px;
        display: block;
    }

            #errorModal .modal-content {
            transform: scale(0.9);
            transition: transform 0.2s ease-out;
        }

        #errorModal.show .modal-content {
            transform: scale(1);
        }

        /* Красивый скроллбар для списка ошибок */
        #errorMessage::-webkit-scrollbar {
            width: 4px;
        }

        #errorMessage::-webkit-scrollbar-thumb {
            background: #e9ecef;
            border-radius: 10px;
        }


        /*Yandex Map */
          #mapModal .modal-content {
        border: none;
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        overflow: hidden;
    }

    #mapModal .modal-header {
        padding: 1.5rem 1.5rem 1rem;
        background: transparent;
    }

    /* 2. АНИМАЦИЯ ПОЯВЛЕНИЯ (Pop-up) */
    .modal.fade .modal-dialog {
        transform: scale(0.9) translateY(30px);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
    }
    .modal.show .modal-dialog {
        transform: scale(1) translateY(0);
    }

    /* 3. КОНТЕЙНЕР КАРТЫ */
    #yandexMap {
        position: relative;
        width: 100%;
        height: 450px;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        /* Убираем серые пятна при клике на мобилках */
        -webkit-tap-highlight-color: transparent;
    }

    /* 4. ПЛАНКА-ПОДСКАЗКА ПОД КАРТОЙ */
    #mapAddressHint {
        margin-top: 1rem;
        padding: 12px 16px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #64748b;
        font-size: 0.9rem;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    /* Активное состояние подсказки (когда адрес выбран) */
    #mapAddressHint.active {
        background: #f0fdf4;
        color: #16a34a !important;
        border-color: #bcf0da;
        font-weight: 600;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08);
    }

    /* 5. КНОПКИ УПРАВЛЕНИЯ */
    #confirmAddress {
        padding: 10px 30px;
        font-weight: 600;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    #confirmAddress:not(:disabled) {
        box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
    }
    #confirmAddress:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
    }

    /* 6. АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ (Телефоны) */
    @media (max-width: 767.98px) {
        #mapModal .modal-dialog {
            margin: 0;
            display: flex;
            align-items: flex-end; /* Прижимаем к низу */
            min-height: 100%;
        }

        #mapModal .modal-content {
            border-radius: 25px 25px 0 0 !important; /* Скругление только сверху */
            height: 90vh; /* Занимает 90% высоты экрана */
            width: 100%;
        }

        /* Индикатор "шторки" (как в iOS) */
        #mapModal .modal-content::before {
            content: "";
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 4px;
            background: #cbd5e1;
            border-radius: 2px;
            z-index: 10;
        }

        #yandexMap {
            height: 55vh !important; /* Увеличиваем карту для удобства пальцев */
        }

        .modal-footer {
            padding: 1.5rem;
            flex-direction: column-reverse; /* Кнопка "Применить" сверху, "Отмена" снизу */
            gap: 12px;
        }

        .modal-footer button {
            width: 100%; /* Кнопки во всю ширину */
            margin: 0 !important;
            padding: 14px !important;
        }

        #mapAddressHint {
            width: 100%;
            justify-content: center;
        }
    }
   #mapAddressHint {
    transition: all 0.3s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Желтый цвет для стадии "Выбрано, но не проверено" */
.text-warning {
    color: #ffc107 !important;
}

/* Зеленый для стадии "Найдено в базе" */
.text-success {
    color: #198754 !important;
}

/*Навигационная панель */

/* Основной контейнер меню */
.sidebar {
    width: 75px; /* Немного увеличим для комфорта иконок */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    background: #fff;
    border-right: 1px solid #e9ecef;
    height: 100vh;
    position: fixed;
    z-index: 1050;
}

.sidebar:hover {
    width: 260px;
}

/* Ссылка-пункт меню */
.custom-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 10px 0;      /* Увеличили вертикальный отступ */
    color: #6c757d;
    border-radius: 12px;  /* Мягкое скругление */
    margin: 4px 12px;     /* Увеличили боковые отступы самого блока от краев меню */
    transition: all 0.2s ease;
}

/* Чтобы текст не прилипал к иконке при увеличении выделения */
.sidebar-text {
    padding-right: 15px;  /* Запас места справа внутри синего фона */
}

/* Контейнер самой иконки — КЛЮЧЕВОЙ МОМЕНТ */
.nav-icon-wrapper {
    min-width: 59px; /* (75px ширина меню - 16px маржины) = идеальный центр */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem; /* Размер как на скриншоте */
}

/* Текст меню */
.sidebar-text {
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

.sidebar:hover .sidebar-text {
    opacity: 1;
    margin-left: 5px;
}

/* Активное состояние (голубая подложка как на фото) */
.active-link {
    background-color: #eef5ff !important;
    color: #0d6efd !important;
}

/* Скрываем подменю, когда мышка НЕ наведена на сайдбар */
.sidebar:not(:hover) .collapse {
    display: none !important;
}
.custom-chevron {
    font-size: 0.7rem;    /* Делаем чуть меньше */
    margin-left: 10px;    /* Прижимаем ближе к тексту "Список задач" */
    margin-top: 2px;      /* Смещаем чуть ниже по вертикали */
    transition: transform 0.2s;
}

/* Поворот стрелки при раскрытии (если используете data-bs-toggle) */
[aria-expanded="true"] .custom-chevron {
    transform: rotate(180deg);
}


