﻿.app-footer {
    user-select: none;
    -webkit-user-select: none;
    min-height: 3rem;
    padding: 0;
    background-color: var(--rz-base-100);
    border-top: 1px solid var(--rz-base-300);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease;
    contain: layout paint;
}

.footer-stack {
    direction: rtl;
    unicode-bidi: plaintext;
    width: 100%;
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 0.85rem 1.25rem;
    opacity: 0.6;
    transition: opacity 0.3s ease, padding 0.2s ease;
    will-change: opacity, padding;
}

    .footer-stack.is-ready {
        opacity: 1;
    }

    .footer-stack.is-mobile {
        padding: 0.65rem 0.9rem;
        gap: 0.5rem !important;
    }

.footer-pill {
    background-color: var(--rz-base-200);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    line-height: 1;
    /* حذف تاخیر کلیک در موبایل */
    touch-action: manipulation;
}

.footer-icon {
    font-size: 15px;
    transform: translateZ(0);
}

.footer-icon-primary {
    color: var(--rz-primary);
}

.footer-icon-success {
    color: var(--rz-success);
}

.footer-stack.is-mobile .footer-icon {
    font-size: 13px;
}

.footer-text {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: var(--rz-text-color);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.footer-separator {
    display: inline;
    margin: 0 2px;
    color: var(--rz-text-color);
    font-size: 0.8rem;
    line-height: 1.2;
    opacity: 0.35;
}

.footer-stack.is-mobile .footer-text,
.footer-stack.is-mobile .footer-separator {
    font-size: 0.7rem;
}

.footer-admin-search-icon {
    margin-right: 4px;
    color: var(--rz-success);
    font-size: 12px;
    opacity: 0.7;
}

/* دکمه آنلاین با حداکثر بهره‌وری از GPU */
.admin-online-pill {
    cursor: pointer;
    transform: translate3d(0, 0, 0);
    will-change: transform, box-shadow, background-color;
    backface-visibility: hidden;
    perspective: 1000px;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

    .admin-online-pill:hover {
        background-color: rgba(40, 167, 69, 0.15) !important;
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
        transform: translate3d(0, -2px, 0);
    }

    .admin-online-pill:active {
        transform: translate3d(0, 0, 0);
        transition-duration: 0.1s;
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
        transform: scale3d(0.95, 0.95, 1);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
        transform: scale3d(1, 1, 1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
        transform: scale3d(0.95, 0.95, 1);
    }
}

@media (max-width: 768px) {
    .app-footer {
        min-height: 2.5rem;
    }

    .footer-pill {
        padding: 0.25rem 0.5rem;
    }

    .footer-stack {
        padding: 0.5rem 0.75rem;
    }
}