/* Mobile Plaza Portal Styles (Modern English / LTR) */

/* Smooth Transitions & Selection */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* PTA Status Badges */
.badge-pta-approved {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.badge-non-pta {
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.badge-jv {
    background-color: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

/* Toast Animations */
.toast-enter {
    animation: slideUp 0.25s ease-out forwards;
}
.toast-exit {
    animation: fadeOut 0.2s ease-in forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* ==============================================================
   Compact App-Style Listing Rows (As in Reference Screenshot)
   ============================================================== */
.olx-compact-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 0.85rem;
    gap: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: auto;
    overflow: visible;
}

.olx-compact-row:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.09);
}

.olx-compact-thumb {
    position: relative;
    width: 125px;
    min-width: 125px;
    max-width: 125px;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    align-self: stretch;
}

@media (min-width: 640px) {
    .olx-compact-row {
        padding: 1.15rem;
        gap: 1.25rem;
    }
    .olx-compact-thumb {
        width: 175px;
        min-width: 175px;
        max-width: 175px;
        border-radius: 1.15rem;
    }
}

@media (min-width: 1024px) {
    .olx-compact-thumb {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }
}

.olx-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.olx-compact-row:hover .olx-compact-thumb img {
    transform: scale(1.05);
}

.olx-compact-content {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: visible;
}

/* Bottom App Navigation Bar */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    padding: 0.4rem 1.5rem 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    transition: color 0.15s ease;
    text-decoration: none;
    gap: 2px;
}

.app-nav-item:hover, .app-nav-item.active {
    color: #2563eb;
}

.app-nav-item i {
    font-size: 18px;
}

.app-nav-center-btn {
    position: relative;
    top: -16px;
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    padding: 3px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -3px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease;
    text-decoration: none;
}

.app-nav-center-btn:hover {
    transform: scale(1.08);
}

.app-nav-center-btn-inner {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
}

/* User Profile Menu & Safe Hover Bridge */
.user-dropdown-wrapper {
    position: absolute;
    right: 0;
    top: 100%;
    padding-top: 8px; /* Safe bridge so cursor movement never exits hitbox */
    z-index: 50;
}

.user-dropdown-wrapper::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -10px;
    right: -10px;
    height: 20px;
    background: transparent;
}

