﻿/* =========================================================
   RAPID HMS ENTERPRISE FOOTER
========================================================= */

.smart-footer {
    min-height: 74px;
    margin-top: 20px;
    padding: 14px 24px;
    border-top: 1px solid #e2e8f0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 5;
}

/* =========================================================
   LEFT
========================================================= */

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
}

/* STATUS DOT */

.footer-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px rgba(16,185,129,.6);
    flex-shrink: 0;
}

/* TEXT WRAPPER */

.footer-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    /* TITLE */

    .footer-brand-text span {
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* SUBTITLE */

    .footer-brand-text small {
        margin-top: 2px;
        font-size: 12px;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* =========================================================
   CENTER
========================================================= */

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* CHIP */

.footer-chip {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    transition: all .2s ease;
}

    .footer-chip:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        transform: translateY(-1px);
    }

/* =========================================================
   RIGHT
========================================================= */

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

/* POWERED */

.footer-powered {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

    /* BRAND */

    .footer-powered strong {
        color: #2563eb;
        margin-left: 4px;
        font-weight: 700;
    }

/* VERSION */

.footer-version {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient( 90deg, #2563eb, #3b82f6 );
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(37,99,235,.22);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .smart-footer {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px 16px;
    }

    .footer-brand,
    .footer-center,
    .footer-right {
        justify-content: center;
        text-align: center;
    }

    .footer-right {
        gap: 12px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .smart-footer {
        padding: 16px;
    }

    .footer-center {
        gap: 8px;
    }

    .footer-chip {
        width: 100%;
        justify-content: center;
    }

    .footer-right {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-version {
        width: fit-content;
    }

    .footer-brand-text span,
    .footer-brand-text small {
        text-align: center;
    }
}
