﻿/* RideFlex layout overrides + utility components */

/* Accessibility: visually-hidden helper + skip link */
.visually-hidden {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: #0078d7;
    color: #fff;
    padding: .75rem 1rem;
    text-decoration: none;
    border-radius: 0 0 .5rem 0;
}

.skip-link:focus {
    left: 0;
}

/* Sidebar logo */
.app-sidebar-logo-default {
    height: 155px;
    display: block;
    margin: 15px;
}

.app-sidebar-logo {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    height: 125px;
}

/* Anti-spam honeypot */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0;
    width: 0;
    opacity: 0;
    pointer-events: none;
}

/* WhatsApp floating button */
.whatsapp-circle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
    z-index: 1000;
    animation: bounce 1.4s ease-in-out infinite;
}

.whatsapp-circle:hover,
.whatsapp-circle:focus-visible {
    transform: scale(1.1);
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.whatsapp-circle img {
    width: 35px;
    height: 35px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Loading overlay */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-circle { animation: none; }
    .spinner         { animation: none; border-top-color: #007bff; }
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
        scroll-behavior: auto !important;
    }
}
