/* Mobile App Footer Menu - styles */
.mafm-root {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Hide everywhere by default and show only on small screens */
.mafm-root { display: none; }

/* show for small devices only */
@media (max-width: 880px) {
    .mafm-root { display: block; pointer-events: auto; }
}

/* ---------------------------------------------------------
   SEARCH OVERLAY
---------------------------------------------------------- */
.mafm-search-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,10,0.45);
    z-index: 100000;
    padding: 20px;
}
.mafm-search-overlay.active { display: flex; }

.mafm-search-form {
    width: 100%;
    max-width: 900px;
    display:flex;
    gap:8px;
    align-items:center;
}
.mafm-search-form input[type="search"] {
    flex:1;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    outline: none;
}
.mafm-search-submit,
.mafm-search-close {
    background: transparent;
    border:none;
    font-size: 20px;
    color: #fff;
    padding: 8px 10px;
}

/* ---------------------------------------------------------
   BOTTOM BAR
---------------------------------------------------------- */
.mafm-bottom-wrap {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 99999;
    pointer-events: auto;
    padding-bottom: calc(env(safe-area-inset-bottom) + 6px);
}

.mafm-bottom-bar {
    position: relative;
    height: 74px;
    background: #f9fafb; /* Softer than white */
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.14);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 0 22px;
    gap: 10px;
    backdrop-filter: blur(10px);
}

/* ---------------------------------------------------------
   MENU ITEMS
---------------------------------------------------------- */
.mafm-item,
.mafm-register-btn {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    width: 20%;
    min-width: 64px;
    color: #555;
    font-size: 12px;
    text-align:center;
    pointer-events: auto;
}

.mafm-item .mafm-icon,
.mafm-register-btn .mafm-icon {
    font-size: 20px;
    display:block;
    margin-bottom:4px;
    color:#555;
}

.mafm-item .mafm-label,
.mafm-register-btn .mafm-label {
    font-size: 12px;
    font-weight: 500;
    color:#444;
}

.mafm-item:hover,
.mafm-register-btn:hover {
    color: #222;
}

/* ---------------------------------------------------------
   CENTER FLOATING BUTTON
---------------------------------------------------------- */
.mafm-center-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-35%);
    top: -32px;
    z-index: 100000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(180deg,#3b82f6,#2563eb);
    box-shadow: 0 12px 32px rgba(37,99,235,0.35);
    display:flex;
    align-items:center;
    justify-content:center;
    color: #fff;
    cursor: pointer;
    outline: none;
    pointer-events: auto;
}

.mafm-center-inn {
    font-size: 28px;
    transform: none !important; /* ALWAYS show + */
}

/* ---------------------------------------------------------
   LOGGED OUT BUTTON ROW (NEW BEAUTIFUL UI)
---------------------------------------------------------- */
.mafm-register-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 14px 10px;
    gap: 12px;
}

.mafm-reg-btn {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff !important;
    pointer-events: auto;
}

.mafm-reg-btn i {
    font-size: 18px;
}

.mafm-reg-applicant {
    background: #ffcc00;
    color: #000 !important;
}

.mafm-reg-employer {
    background: #2563eb;
}

/* ---------------------------------------------------------
   SMALL SCREENS
---------------------------------------------------------- */
@media (max-width: 420px) {
    .mafm-item .mafm-label,
    .mafm-register-btn .mafm-label {
        display: none;
    }

    .mafm-bottom-bar { padding: 0 14px; }

    .mafm-center-btn {
        width: 56px;
        height: 56px;
        top: -26px;
        transform: translateX(-50%) translateY(-30%);
    }
}

/* hide on desktop */
@media (min-width: 881px) {
    .mafm-root { display: none !important; }
}

/* Prevent gesture conflicts */
body { touch-action: manipulation; }
