/* Shared utility classes */

/* ── Search bar ── */
.search-bar {
    margin-bottom: 16px;
    width: 100%;
    max-width: 320px;
}

.search-bar-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar-inner svg {
    position: absolute;
    left: 10px;
    color: #999;
    pointer-events: none;
    flex-shrink: 0;
}

.search-bar input {
    width: 100%;
    padding: 9px 14px 9px 34px;
    font-size: 13.5px;
    font-family: Poppins, sans-serif;
    border: 1px solid #d0d8ee;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    color: #333;
}

.search-bar input:focus {
    border-color: #003BA0;
    box-shadow: 0 0 0 3px rgba(0, 59, 160, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .search-bar input {
        transition: none;
    }
}

/* ── Module switcher (Simulator Home / Sandbox Channels / Testing Guide) ── */
.module-switcher {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 20px auto 0;
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0px 2px 8px rgba(130, 176, 255, 0.16);
}

.module-switcher__badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: linear-gradient(135deg, #FF6B4A, #FF3D68);
    color: white;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(255, 61, 104, 0.4);
    animation: module-switcher-badge-pulse 2.2s ease-in-out infinite;
}

@keyframes module-switcher-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .module-switcher__badge {
        animation: none;
    }
}

.module-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.module-item:hover {
    background-color: #F1F6FF;
    color: #003BA0;
}

.module-item--active,
.module-item--active:hover {
    background-color: #003BA0;
    color: white;
}

.module-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-item__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.module-item__label {
    font-size: 14px;
    font-weight: 600;
}

.module-item__desc {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
}

@media screen and (max-width: 768px) {
    .module-switcher {
        width: 95%;
        flex-direction: column;
        gap: 6px;
    }

    .module-item__desc {
        display: none;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
