/* ========================================= */
/* 📊 ANALYTICS & ADMIN DASHBOARD STYLES     */
/* ========================================= */

/* Сетка дашборда (Главный экран админа) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

/* Кнопки дашборда */
.admin-dash-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    min-height: 80px;
}

    .admin-dash-btn:active {
        transform: scale(0.96);
    }

    .admin-dash-btn:hover {
        border-color: var(--text-sec);
        background: var(--hover);
    }

/* Бейджи уведомлений (красные кружки) */
.nav-badge, .blink-alert {
    background: #ff0055;
    box-shadow: 0 0 8px #ff0055;
    border: 2px solid var(--surface);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    position: absolute;
    color: white;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nav-badge {
    top: 5px;
    right: 50%;
    margin-right: -22px;
    display: none;
}

    .nav-badge.active {
        display: flex;
    }

.blink-alert {
    top: 6px;
    right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Компактные настройки (переключатели в админке) */
.compact-settings-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.compact-setting-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top: 3px solid transparent; /* Цвет задается инлайном в HTML */
}

    .compact-setting-card h3 {
        margin: 0;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text);
    }

/* Плавающая кнопка добавления (FAB) */
.fab-add-btn {
    position: fixed;
    bottom: 90px; /* Чуть выше навбара */
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(145, 71, 255, 0.4);
    border: none;
    cursor: pointer;
    z-index: 90;
    transition: transform 0.2s;
}

    .fab-add-btn:active {
        transform: scale(0.9);
    }
