/*«Midnight Clarity» (#242e4c + Белый)*/
        :root {
            --brand-dark: #242e4c;
            --brand-white: #ffffff;
            --brand-bg: #f8f9fa;
            --accent-teal: #20c997;
            /* Тот самый микро-акцент */
            --text-muted: #6c757d;
            --border-color: #e2e8f0;
        }

        body {
            background-color: var(--brand-bg);
            color: var(--brand-dark);
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
        }

        /* Боковое меню */
        .sidebar {
            background-color: var(--brand-dark);
            min-height: 100vh;
            color: var(--brand-white);
            padding: 2rem 1.5rem;
        }

        .nav-link {
            color: rgba(255, 255, 255, 0.7);
            padding: 0.8rem 1rem;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .nav-link:hover,
        .nav-link.active {
            color: var(--brand-white);
            background: rgba(255, 255, 255, 0.1);
        }

        .nav-link.active {
            border-left: 4px solid var(--accent-teal);
        }

        /* Карточки */
       .card-custom {
    background: var(--brand-white);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--brand-dark);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease; /* Плавность без движения */
    overflow: hidden;
}



        /* Кнопки */
        .btn-brand {
            background-color: var(--brand-dark);
            color: var(--brand-black);
            border-radius: 8px;
            padding: 0.6rem 1.5rem;
            font-weight: 600;
        }

        .btn-brand:hover {
            background-color: #1a223a;
            color: var(--brand-white);
        }

        .hover-lift {
            transition: transform 0.2s ease, shadow 0.2s ease;
        }

        .hover-lift:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
            background-color: #212529;
            /* Темный фон при наведении */
            color: #fff;
        }

        /* Микро-акценты (Точки уведомлений) */
        .status-dot {
            height: 10px;
            width: 10px;
            background-color: var(--accent-teal);
            border-radius: 50%;
            display: inline-block;
            margin-right: 8px;
            box-shadow: 0 0 8px var(--accent-teal);
        }

        /* Таблицы */
        .table {
            --bs-table-hover-bg: #f1f4f9;
        }

        .table thead th {
            background-color: var(--brand-bg);
            color: var(--text-muted);
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            border: none;
        }

        /* Кастомный поиск */
        .search-input {
            border: 2px solid var(--border-color);
            border-radius: 10px;
            padding-left: 1rem;
        }

        .search-input:focus {
            border-color: var(--brand-dark);
            box-shadow: none;
        }

        .custom-modal-content {
            background-color: var(--brand-dark);
            /* Наш глубокий синий #242e4c */
            color: var(--brand-white);
            border: none;
            border-radius: 24px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
        }

        .info-icon-wrapper {
            width: 80px;
            height: 80px;
            background: rgba(32, 201, 151, 0.1);
            /* Мягкий бирюзовый фон */
            color: var(--accent-teal);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
        }

        .event-name-badge {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 12px 20px;
            border-radius: 12px;
            font-weight: 600;
            color: var(--accent-teal);
            font-size: 1.1rem;
        }

        /* Анимация появления */
        .modal.fade .modal-dialog {
            transform: scale(0.9) translateY(20px);
            transition: transform 0.3s ease-out;
        }

        .modal.show .modal-dialog {
            transform: scale(1) translateY(0);
        }

        .btn-brand {
            background-color: var(--accent-teal);
            border: none;
            color: var(--brand-dark);
            font-weight: 700;
            transition: all 0.3s ease;
        }

        .btn-brand:hover {
            background-color: #1bb386;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
        }

        /* Обновление для инпутов и форм */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    color: var(--brand-dark);
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--brand-dark);
    box-shadow: 0 0 0 0.25 margin rgba(36, 46, 76, 0.1);
}

/* Стилизация карточек событий (вместо старых label) */
.event-card {
    background: var(--brand-white);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-left: 5px solid var(--brand-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.event-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    color: var(--brand-dark);
}

.event-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.event-title {
    font-weight: 700;
    margin: 0;
    color: var(--brand-dark);
}

/* Заголовки */
h2, h3 {
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
}

.hint-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.03);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}
/* Усиление четкости */
.card-custom {
    border: 1px solid var(--border-color); /* Добавляем тонкую рамку вокруг всей карты */
    border-top: 5px solid var(--brand-dark); /* Утолщаем верхнюю линию */
    box-shadow: 0 10px 30px rgba(36, 46, 76, 0.1); /* Делаем тень глубже */
}

.form-label {
    color: var(--brand-dark);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control, .form-select {
    border: 2px solid #ced4da; /* Делаем рамку инпутов заметнее */
    font-size: 1rem;
    height: 50px; /* Увеличиваем высоту для удобства клика */
}

.form-control:focus {
    border-color: var(--accent-teal); /* Подсветка при фокусе бирюзовым */
    box-shadow: 0 0 0 4px rgba(32, 201, 151, 0.15);
}

.event-card {
    border: 2px solid transparent;
    background: #ffffff;
    margin-bottom: 12px;
}

.event-card:hover {
    border-color: var(--brand-dark); /* При наведении карточка обводится темным */
    transform: scale(1.01);
}

.event-title {
    color: var(--brand-dark);
    font-size: 1.2rem;
    font-weight: 800; /* Максимально жирный заголовок */
}

.btn-brand {
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px;
}

/* Закругление углов и мягкая тень */
.custom-modal {
    border-radius: 20px;
    overflow: hidden;
}

/* Стилизация поля ввода */
.custom-modal .form-control {
    border-radius: 12px;
    resize: none;
    transition: all 0.3s ease;
}

.custom-modal .form-control:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
}

/* Контейнер для иконки в шапке */
.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Стиль основной кнопки */
.btn-primary {
    border-radius: 12px;
    background: linear-gradient(45deg, #0d6efd, #0052cc);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Контейнер модалки */
.custom-delete-modal {
    border-radius: 24px;
    background-color: #ffffff;
}

/* Кастомная ширина для аккуратного вида (опционально) */
.modal-sm-custom {
    max-width: 400px;
}

/* Стиль иконки удаления */
.delete-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #fff5f5; /* Очень светлый красный */
    color: #ff4d4f;            /* Акцентный красный */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: pulse-red 2s infinite; /* Мягкая пульсация для привлечения внимания */
}

/* Кнопка удаления */
.btn-danger {
    background-color: #ff4d4f;
    border: none;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background-color: #e03e3f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

/* Анимация пульсации (опционально) */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.2); }
    70% { box-shadow: 0 0 0 15px rgba(255, 77, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0); }
}
        .event-row:hover {
            background-color: #f8fafc;
            border-left: 5px solid var(--accent-teal);
            transform: translateX(2px);
            /* Легкое смещение для динамики */
        }

        .event-row:last-child {
            border-bottom: none;
        }