/* AgroGM footer */
.footer.ag-footer {
    --ag-foot-text: #5d6f6b;
    --ag-foot-strong: #16332e;
    --ag-foot-border: rgba(16, 41, 37, 0.08);
    --ag-foot-chip: rgba(10, 179, 156, 0.12);
    --ag-foot-teal: #0ab39c;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 1px solid var(--ag-foot-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    color: var(--ag-foot-text);
    box-shadow: 0 -8px 24px rgba(16, 38, 34, 0.04);
}

.footer.ag-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ag-foot-teal), rgba(10, 179, 156, 0.15) 42%, transparent 78%);
}

.ag-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 58px;
    width: 100%;
}

.ag-footer__left,
.ag-footer__right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.ag-footer__mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ag-foot-teal);
    box-shadow: 0 0 0 4px rgba(10, 179, 156, 0.14);
    flex-shrink: 0;
}

.ag-footer__copy {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ag-foot-strong);
    white-space: nowrap;
}

.ag-footer__version {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: var(--ag-foot-chip);
    color: #0a7f70;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ag-footer__right {
    font-size: 0.8rem;
    color: var(--ag-foot-text);
}

.ag-footer__right strong {
    font-weight: 700;
    color: var(--ag-foot-strong);
}

html[data-layout-mode="dark"] .footer.ag-footer {
    --ag-foot-text: rgba(255, 255, 255, 0.58);
    --ag-foot-strong: #f3f7f6;
    --ag-foot-border: rgba(255, 255, 255, 0.08);
    --ag-foot-chip: rgba(10, 179, 156, 0.2);
    background: rgba(27, 38, 36, 0.92);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
}

html[data-layout-mode="dark"] .ag-footer__version {
    color: #7ee0d1;
}

@media (max-width: 575.98px) {
    .ag-footer__right {
        display: none;
    }

    .ag-footer__copy {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
