/* ========== BADGE СТИЛИ ========== */

.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    border-radius: 10px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    min-width: 18px;
}

/* Общий значок в шапке меню */
.badge-primary {
    background-color: #FF6B9D; /* child-pink */
    color: white;
}

/* Значки для разных разделов */
.badge-notification {
    background-color: #D4AF37; /* gold-accent */
    color: white;
}

.badge-stories {
    background-color: #2B5AA0; /* orthodox-blue */
    color: white;
}

.badge-fairy-tales {
    background-color: #FF6B9D; /* child-pink */
    color: white;
}

/* Анимация появления */
.badge {
    transition: all 0.3s ease-in-out;
}

.badge[style*="display: none"] {
    display: none !important;
}

@keyframes badgePulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.badge:not([style*="display: none"]) {
    animation: badgePulse 0.3s ease-in-out;
}

/* Позиционирование в меню */
.menu-items li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.menu-items li a:hover {
    background-color: rgba(43, 90, 160, 0.1);
}

.menu-items li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.menu-items li a .badge {
    margin-left: auto;
}

/* Header menu badge */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.menu-header h3 {
    margin: 0;
    font-size: 18px;
}
