* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f8fbf9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Шапка (заголовок) */
.header {
    background: linear-gradient(135deg, #27ae60, #1abc9c);
    color: white;
    text-align: center;
    padding: 25px 20px;
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

/* Меню под шапкой */
/* Контейнер для шапки и меню */
.header-wrapper {
    position: relative;
    background: #ecf0f1;
    padding: 0;
}

/* Шапка сайта */
.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    margin: 0;
}

/* Кнопка меню для мобильной версии */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 20px;
    color: #27ae60;
    padding: 10px 15px;
    border-radius: 8px;
    background: #bdc3c7;
    margin: 0 10px 10px;
}
/* Контейнер для мобильного меню */
.nav-menu-container {
    display: none;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
     margin: 0 10px; /* Отступы по бокам */
}

/* Само меню */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: #2ecc71;
}

/* Компьютерная версия кнопок */
.nav-buttons {
    display: flex;
    gap: 20px;
}

.nav-button {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .nav-buttons {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu-container {
        display: none;
        position: relative;
        width: 100%;
    }
    
    .nav-menu-container.active {
        display: block;
    }
}

/* Общий стиль кнопок */
.btn {
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin: 0 5px;
    font-size: 14px;
}

.btn:hover {
    background: #1abc9c;
}

/* Форма ввода */
.form-control {
    width: 100%;
    padding: 12px 16px;
    margin: 10px 0;
    border: 1px solid #ced4da;
    border-radius: 16px;
    background: #f8f9fa;
    font-size: 16px;
}

.form-control:focus {
    border-color: #27ae60;
    box-shadow: 0 0 5px rgba(39,174,96,0.5);
    outline: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.stat-item {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .stat-item {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* Убираем лишние марджины у контента */
.container {
    margin-bottom: 0; /* Убираем нижний отступ контейнера */
}

/* Исправляем возможные проблемы с отступами */
.footer-content {
    padding: 0 20px;
    margin: 0;
}

/* Анимации появления */
.stat-item {
    opacity: 0;
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Эффект наведения */
.stat-item:hover .stat-value {
    font-size: 26px;
    transition: font-size 0.3s ease;
}

/* Отступы между элементами */
.stats-grid {
    gap: 30px;
    padding: 30px;
}

/* Скругление углов */
.stat-item {
    border-radius: 20px;
}

/* Тени и объем */
.stat-item {
    box-shadow: 0 6px 14px rgba(0,0,0,0.1), 
                0 2px 4px rgba(0,0,0,0.06);
}

/* Вертикальные отступы */
.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

/* Горизонтальные отступы */
.px-2 {
    padding: 0 20px;
}

.px-3 {
    padding: 0 30px;
}

/* Карточки */
.card {
    padding: 30px; /* Увеличиваем основной отступ */
    
    /* Стили для заголовков */
    h2 {
        margin-bottom: 30px;
        font-size: 24px;
    }
}

/* Отступы для параграфов */
.card p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Контейнер для кнопок вывода средств */
.btn-group {
    display: flex;
    gap: 20px; /* Увеличиваем расстояние между кнопками */
    margin-top: 20px; /* Отступ сверху */
}

/* Стили для кнопок */
/* Обновляем стили для кнопок вывода средств */
/* Обновленные стили для кнопок вывода средств */
.btn-secondary {
    padding: 8px 16px; /* Тонкие отступы */
    font-size: 13px;
    border-radius: 20px;
    
    /* Зеленый градиент */
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    box-shadow: none;
    
    /* Убираем стандартные стили */
    border: none;
    outline: none;
    
    /* Анимации */
    transition: background 0.3s ease, transform 0.2s ease;
    
    /* Позиционирование */
    margin-left: 0;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #27ae60, #22a59d);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Контейнер для кнопок */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    
    /* Выравнивание под текстом баланса */
    align-self: flex-start;
}

/* Стили для параграфа с балансом */
.card p:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 20px;
    
    .btn-group {
        margin-left: auto;
    }
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .btn-secondary {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 8px;
    }
}

/* Эффект при наведении на контейнер */
.btn-group:hover .btn-secondary {
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Отключенные кнопки */
.btn-secondary.disabled {
    background: linear-gradient(45deg, #e5e5e5, #d8d8d8);
    cursor: not-allowed;
    opacity: 0.6;
}


/* Стили для статуса аккаунта */
.status {
    margin-top: 20px;
    font-size: 18px;
}

/* Улучшаем отступ для span с кнопками */
p span {
    margin-left: 30px; /* Увеличиваем отступ слева */
    display: flex;
    align-items: center;
}

/* Медиазапросы для мобильных устройств */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    p span {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .card {
        padding: 20px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .btn-secondary {
        padding: 10px 20px;
    }
}


/* Стили для меток */
.label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 6px;
}

/* Современный стиль форм */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Стили для полей ввода */
.form-control {
    width: 100%;
    padding: 12px 16px;
    margin: 0;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #27ae60;
    box-shadow: 0 0 5px rgba(39,174,96,0.5);
    outline: none;
}

/* Стили для текстовых областей */
textarea.form-control {
    height: 150px;
    padding: 16px;
    resize: vertical;
}

/* Стили для чекбоксов и радиокнопок */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-check input {
    accent-color: #27ae60;
    margin-right: 8px;
}

/* Стили для выпадающих списков */
select.form-control {
    padding: 12px 16px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"><path d="M4 5.348V14a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V5.348L11.342 9l-4-4-4 4z"/></svg>');
    background-position: right 12px center;
    background-repeat: no-repeat;
}

/* Стили для ошибок валидации */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:invalid ~ .form-feedback {
    display: block;
}

.form-feedback {
    display: none;
    color: #dc3545;
    font-size: 12px;
}

/* Стили для кнопок отправки */
.btn-submit {
    background: #27ae60;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #1abc9c;
}

/* Стили для групп кнопок */
.btn-group {
    display: flex;
    gap: 10px;
}

/* Адаптивные стили для форм */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Стили для мобильных устройств */
@media (max-width: 576px) {
    .container {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 18px;
    }
}

/* Улучшенные стили для форм */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Стили для меток */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #495057;
}

/* Стили для ошибок */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Стили для полей с подсказками */
.form-floating {
    position: relative;
}

.form-floating input,
.form-floating textarea,
.form-floating select {
    padding-top: 1.625rem;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    margin-bottom: 0;
    vertical-align: top;
    font-size: 0.875rem;
    color: #495057;
}

/* Анимации */
@keyframes placeholder-show {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0.4;
    }
}

/* Стили для модальных окон */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Стили для карточек */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

/* Стили для списков */
.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 0.25rem;
}

.list-group-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #212529;
    text-decoration: none;
    
    /* Современные эффекты */
    transition: background-color 0.3s ease;
    border-radius: 8px;
    
    /* Отступы и размеры */
    --list-group-item-padding: 1rem;
    --list-group-item-border-radius: 8px;
    
    /* Анимации при наведении */
    &:hover {
        background-color: rgba(0, 0, 0, 0.025);
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    /* Активное состояние */
    &.active {
        background-color: #27ae60;
        color: white;
        font-weight: 500;
    }
    
    /* Ошибки */
    &.disabled {
        color: #6c757d;
        pointer-events: none;
        background-color: #f8f9fa;
    }
}

/* Стили для иконок в списке */
.list-group-item .icon {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
}

/* Стили для действий */
.list-group-item .actions {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

/* Адаптивные стили */
@media (max-width: 576px) {
    .list-group-item {
        padding: 0.5rem 1rem;
    }
}

/* Стили для вложенных списков */
.list-group .list-group {
    margin-left: 1.25rem;
}

/* Стили для разделителей */
.list-group-item-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    margin: 0.75rem 0;
}

/* Стили для групп действий */
.list-group-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Стили для кнопок в списке */
.list-group-button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    
    &:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
}

/* Стили для активных кнопок */
.list-group-button.active {
    background-color: #27ae60;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Стили для отключенных кнопок */
.list-group-button.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Анимации при наведении */
.list-group-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* Стили для кнопок с иконками */
.list-group-button .icon {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
}

/* Стили для кнопок разных размеров */
.list-group-button.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.list-group-button.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Стили для кнопок с разными состояниями */
.list-group-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.list-group-button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

/* Стили для групп кнопок */
.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* Адаптивные стили для кнопок */
@media (max-width: 768px) {
    .list-group-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .list-group-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Стили для всплывающих подсказок */
.list-group-button[data-tooltip] {
    position: relative;
    cursor: help;
}

.list-group-button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.list-group-button[data-tooltip]:hover::after {
    opacity: 1;
}
/* Стили для кнопки отправки ответа */
.reply-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 30px;
    background: #27ae60;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.reply-form button:hover {
    background: #1abc9c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reply-form button:active {
    background: #16a085;
    transform: translateY(0);
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .nav a {
        margin-bottom: 15px;
    }
    
    .reply-form button {
        width: 100%;
        margin-bottom: 20px;
    }
}
/* Контейнер для тикетов */
.ticket-list {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Отдельный тикет */
.ticket-item {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 20px;
    transition: box-shadow 0.3s;
}

.ticket-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Заголовок тикета */
.ticket-subject {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ticket-subject a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.ticket-subject a:hover {
    color: #16a085;
}
/* Кнопка "Все мои тикеты" */
.nav a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, background 0.3s;
    padding: 8px 16px;
    border-radius: 30px; /* Увеличиваем радиус скругления */
    border: none;
    background: transparent;
}

.nav a:hover {
    color: #16a085;
    background: #c1dcd5;
}

/* Кнопка отправки ответа */
button {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 30px; /* Увеличиваем радиус скругления */
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

button:hover {
    background: #1abc9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

button:active {
    background: #16a085;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(22, 160, 133, 0.4) inset;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .nav a {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    button {
        width: 100%;
        display: block;
        margin: 15px 0;
    }
}
/* Статус-бейдж */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-open {
    background: #f2dede;
    color: #a94442;
}

.status-pending {
    background: #fcf8e3;
    color: #856404;
}

.status-closed {
    background: #d9edf7;
    color: #31708f;
}

/* Мета-информация */
.ticket-meta {
    color: #7f8c8d;
    font-size: 13px;
}

/* Общие стили для списка */
@media (max-width: 768px) {
    .ticket-item {
        padding: 15px;
    }
}
/* Стили для модальных окон */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #7f8c8d;
}

/* Стили для карточек */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

/* Стили для таблиц */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

th {
    background: #f8f9fa;
    font-weight: 500;
}

/* Стили для форм */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #27ae60;
    box-shadow: 0 0 5px rgba(39,174,96,0.5);
}

/* Стили для ошибок */
.error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Стили для уведомлений */
.notification {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.notification-success {
    background: #c3e6cb;
    color: #155724;
}

.notification-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .modal-content {
        padding: 15px;
    }
    
    .card {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }

    /* Оптимизация для мобильных устройств */
    .card {
        padding: 15px;
        margin: 15px 0;
    }

    .list-group-item {
        padding: 12px 16px;
    }
}

/* Стили для печати */
@media print {
    .modal,
    .navbar,
  

    body {
        background: white;
        color: black;
    }
}

/* Высококонтрастные темы */
[data-theme="dark"] {
    background: #121212;
    color: #f8f9fa;
}

[data-theme="dark"] .btn-primary {
    background: #1abc9c;
}

[data-theme="dark"] .card {
    background: #212529;
    color: #f8f9fa;
}

/* Улучшенные эффекты наведения */
.btn:focus,
.btn:active {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}

/* Анимации появления */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенные стили для форм */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.8;
    transition: all 0.3s;
}

.form-control:focus::placeholder {
    opacity: 0;
}

/* Стили для прогресс-баров */
.progress {
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #27ae60, #1abc9c);
    transition: width 0.6s ease;
}

/* Стили для хлебных крошек */
.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #495057;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #27ae60;
}

/* Стили для прелоадера */
.loader {
    border: 4px solid rgba(204, 204, 204, 0.4);
    border-top: 4px solid #27ae60;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Стили для прелоадера */
.loader {
    border: 4px solid rgba(204, 204, 204, 0.4);
    border-top: 4px solid #27ae60;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

/* Стили для карточек */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 25px;
    margin: 30px 0;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

/* Стили для карточек с изображениями */
.card-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Стили для карточек с действиями */
.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Стили для модальных окон */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #7f8c8d;
}

/* Стили для галереи */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Стили для слайдера */
.slider {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease;
}

.slider-item {
    flex-shrink: 0;
    margin-right: 20px;
}

/* Стрелки управления слайдером */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.4);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    from, 60% {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Анимация появления элементов */
.animate-appear {
    animation: bounceIn 0.5s ease-out;
}

/* Анимация исчезновения элементов */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.animate-disappear {
    animation: fadeOut 0.3s ease-out;
}

/* Анимация загрузки */
@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Стили для прелоадера */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    animation: loader-spin 1.5s linear infinite;
    position: relative;
}

.loader-ring::before {
    content: '';
    position: absolute;
    width: inherit;
    height: inherit;
    border: 4px solid #27ae60;
    border-radius: 50%;
    animation: loader-spin 1.5s linear infinite;
}

/* Стили для уведомлений */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease-out;
}

.notification-success {
    border-left: 4px solid #27ae60;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

/* Закрытие уведомлений */
.notification-close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #999;
}

/* Стили для модальных окон */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    animation: fadeIn 0.3s ease-out;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
    }
    
   @media (max-width: 768px) {
    .loader-ring {
        width: 60px;
        height: 60px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .card {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .notification {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* Высококонтрастная тема */
[data-theme="dark"] {
    background: #121212;
    color: #f8f9fa;
}

[data-theme="dark"] .btn-primary {
    background: #1abc9c;
}

[data-theme="dark"] .card {
    background: #212529;
    color: #f8f9fa;
}

/* Печатная версия */
@media print {
    .modal,
    .navbar,
  
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        background: white;
        color: black;
    }
}

/* Улучшенные эффекты наведения */
.btn:focus,
.btn:active {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}

/* Анимации появления */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация загрузки */
.loading-state {
    opacity: 0.5;
    pointer-events: none;
}

/* Стили для прелоадера */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(0,0,0,0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(0,0,0,0.3);
    }
}


/* Дополнительные анимации для мобильных устройств */
@media (max-width: 576px) {
    .card {
        animation: cardMobile 0.5s ease-out;
    }

    @keyframes cardMobile {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-content {
        animation: modalMobile 0.5s ease-out;
    }

    @keyframes modalMobile {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Общие анимации для всех устройств */
.animate-scale {
    animation: scaleEffect 0.5s ease-out;
}

@keyframes scaleEffect {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

.animate-rotate {
    animation: rotateEffect 1s linear infinite;
}

@keyframes rotateEffect {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Анимации для форм */
.form-animate {
    animation: formAnimation 0.5s ease-out;
}

@keyframes formAnimation {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимации для кнопок */
.btn-animate {
    animation: btnAnimation 0.3s ease-out;
}

@keyframes btnAnimation {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}
/* Удаляем старые стили футера */
.footer {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 40px 0;
    text-align: center;
    font-size: 18px;
    border-radius: 20px;
    margin-top: 30px;
    position: relative;
}

/* Добавляем новые стили */
.footer {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 20px 0; /* Уменьшили отступы */
    text-align: center;
    font-size: 16px;
    border-radius: 0; /* Убрали скругление */
    margin-top: 30px;
    position: relative;
    
    /* Убираем лишние отступы */
    margin: 0;
    padding: 0 20px; /* Боковые отступы оставили */
}

.footer::before {
    content: '';
    position: absolute;
    top: -15px; /* Уменьшили размер градиента */
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #27ae60;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        padding: 15px 0;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 10px 0;
    }
}
