/* Основные стили для прибитого футера */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Стили для карточек */
.navbar-brand {
    font-weight: bold;
}

.card-hover:hover {
    transform: translateY(-5px);
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.announcement-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Flash сообщения */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* Статусы */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.main-image {
    max-height: 400px;
    object-fit: contain;
}

/* Утилиты */
.min-height-400 {
    min-height: 400px;
}

/* Стили для модального окна статусов */
#statusModal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

#statusModal .modal-header {
    padding: 15px 20px;
}

#statusModal .modal-body {
    padding: 25px;
}

#statusModal .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 16px;
}

#statusModal .form-select:focus {
    border-color: #215d87;
    box-shadow: 0 0 0 0.2rem rgba(33, 93, 135, 0.25);
}

#statusModal .badge {
    font-size: 14px;
    padding: 8px 15px;
}

/* Анимация для модального окна */
#statusModal .modal-dialog {
    animation: slideInUp 0.3s ease;
}

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

/* Исправление для badge в статистике категорий */
.card .badge.bg-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 22px;
    line-height: 1;
    padding: 0 8px;
    font-size: 12px;
    vertical-align: middle;
}

/* Отступ между текстом категории и progress */
.category-stats-item {
    margin-bottom: 15px;
}

.category-stats-item:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.category-name {
    font-size: 13px;
    color: #333;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(135deg, #215d87 0%, #17476f 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Дополнительно: исправление для всех badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0.35em 0.65em;
}