/* ============================================================
   style.css — SOUSOUP (Mango) Marketplace Stylesheet
   ============================================================ */

:root {
    --mongo-primary: #2F80ED;
    --mongo-primary-light: #56CCF2;
    --mongo-accent: #a855f7;
    --mongo-success: #00e676;
    --mongo-warning: #ffa726;
    --mongo-danger: #ff5252;
    --mongo-dark: #0A0F1E;
    --mongo-card: rgba(15, 25, 55, 0.65);
    --mongo-border: rgba(47, 128, 237, 0.15);
    --mongo-text: #ffffff;
    --mongo-muted: rgba(255, 255, 255, 0.6);
    --mongo-font: 'Outfit', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--mongo-font);
    background-color: var(--mongo-dark);
    color: var(--mongo-text);
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(10, 30, 90, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 30%, rgba(5, 20, 70, 0.6) 0%, transparent 60%),
        linear-gradient(160deg, #0a0f1e 0%, #0d1a3a 40%, #091428 100%);
    background-attachment: fixed;
}

/* --- Header --- */
.mongo-header {
    height: 70px;
    background: rgba(8, 14, 35, 0.9);
    border-bottom: 1px solid var(--mongo-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

body.has-avolo-topbar .mongo-header {
    top: 60px !important;
}

body.has-avolo-topbar .mongo-sidebar {
    top: 60px !important;
    height: calc(100vh - 60px) !important;
}

.mongo-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mongo-logo {
    height: 36px;
}

.mongo-brand {
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--mongo-primary-light), var(--mongo-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mongo-brand small {
    font-size: 0.65rem;
    color: var(--mongo-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.mongo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mongo-nav-btn {
    text-decoration: none;
    color: var(--mongo-text);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mongo-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mongo-logout-btn {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    border-radius: 10px;
    padding: 8px 16px;
    color: var(--mongo-danger);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
}

.mongo-logout-btn:hover {
    background: rgba(255, 82, 82, 0.2);
}

/* --- Container & Layout --- */
.mongo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.mongo-hero {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease;
}

.mongo-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.mongo-hero-subtitle {
    font-size: 1rem;
    color: var(--mongo-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.mongo-search-bar-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.mongo-search-input-container {
    position: relative;
    flex: 1;
}

.mongo-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mongo-muted);
    font-size: 1.2rem;
}

#mongo-search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border-radius: 16px;
    border: 1px solid var(--mongo-border);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

#mongo-search-input:focus {
    border-color: var(--mongo-primary-light);
    background: rgba(255, 255, 255, 0.08);
}

#mongo-search-btn {
    background: linear-gradient(135deg, var(--mongo-primary), var(--mongo-primary-light));
    color: white;
    border: none;
    border-radius: 16px;
    padding: 0 28px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(47, 128, 237, 0.3);
    transition: all 0.3s;
}

#mongo-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(47, 128, 237, 0.45);
}

.mongo-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* --- Sidebar Filters --- */
.mongo-sidebar {
    background: var(--mongo-card);
    border: 1px solid var(--mongo-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    height: fit-content;
}

.mongo-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mongo-sidebar-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-filters-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mongo-filter-group {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.25rem;
}

.mongo-filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mongo-filter-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mongo-primary-light);
}

.mongo-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbars */
.mongo-filter-options::-webkit-scrollbar { width: 4px; }
.mongo-filter-options::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

.mongo-filter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.mongo-filter-label:hover {
    opacity: 1;
}

.mongo-filter-label input {
    margin-right: 8px;
    accent-color: var(--mongo-primary-light);
}

.filter-count {
    font-size: 0.75rem;
    opacity: 0.4;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 6px;
}

.mongo-clear-filters-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    color: var(--mongo-danger);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.mongo-clear-filters-btn:hover {
    background: rgba(255, 82, 82, 0.2);
}

/* --- Results Section --- */
.mongo-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

#results-count {
    font-size: 0.9rem;
    opacity: 0.7;
}

.mobile-filters-trigger {
    display: none;
    background: var(--mongo-card);
    border: 1px solid var(--mongo-border);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.mongo-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.mongo-part-card {
    background: var(--mongo-card);
    border: 1px solid var(--mongo-border);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.mongo-part-card:hover {
    transform: translateY(-5px);
    border-color: rgba(47, 128, 237, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.part-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
}

.part-card-placeholder {
    width: 100%;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.15);
}

.part-card-placeholder i {
    font-size: 3rem;
}

.part-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.part-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.part-card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--mongo-success);
    margin-bottom: 0.75rem;
}

.part-card-location {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mongo-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0.5;
}

.mongo-empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--mongo-primary-light);
}

/* --- Modal Overlay & Box --- */
.mongo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mongo-modal-overlay.active {
    display: flex;
}

.mongo-modal-box {
    background: #0d1428;
    border: 1px solid var(--mongo-border);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.mongo-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    z-index: 10;
}

.mongo-modal-close:hover {
    opacity: 1;
}

/* --- Detail View Elements --- */
.detail-img-container {
    width: 100%;
    height: 250px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
    font-size: 4rem;
}

.detail-content {
    padding: 2rem;
}

.detail-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.detail-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mongo-success);
    margin-bottom: 1rem;
}

.detail-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
}

.detail-spec-item {
    display: flex;
    flex-direction: column;
}

.detail-spec-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    opacity: 0.4;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.detail-spec-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mongo-primary-light);
}

.detail-shop-info {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.detail-shop-location {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.detail-actions-row {
    display: flex;
    gap: 10px;
}

.mongo-btn-call {
    flex: 1;
    background: #4A5568;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.mongo-btn-call:hover {
    background: #2D3748;
}

.mongo-btn-whatsapp {
    flex: 1;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.mongo-btn-whatsapp:hover {
    background: #128C7E;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

/* --- Auth Pages --- */
.mongo-auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.mongo-auth-container {
    background: var(--mongo-card);
    border: 1px solid var(--mongo-border);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.6s ease;
}

.mongo-auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mongo-auth-logo {
    height: 48px;
    margin-bottom: 0.75rem;
}

.mongo-auth-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
}

.mongo-auth-header p {
    font-size: 0.82rem;
    opacity: 0.6;
    margin-top: 4px;
    line-height: 1.4;
}

.mongo-auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--mongo-muted);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 9px;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    background: var(--mongo-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(47, 128, 237, 0.25);
}

.mongo-auth-form {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.mongo-auth-form.active {
    display: flex;
}

.mongo-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mongo-input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mongo-input-group input,
.mongo-input-group textarea,
.mongo-input-group select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

.mongo-input-group input:focus,
.mongo-input-group textarea:focus,
.mongo-input-group select:focus {
    border-color: var(--mongo-primary-light);
    background: rgba(255, 255, 255, 0.08);
}

.mongo-auth-submit-btn {
    background: linear-gradient(135deg, var(--mongo-primary), var(--mongo-primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mongo-auth-submit-btn:hover {
    filter: brightness(1.05);
}

.mongo-auth-back-link {
    text-align: center;
    color: var(--mongo-muted);
    font-size: 0.82rem;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
    align-self: center;
    font-weight: 500;
}

.mongo-auth-back-link:hover {
    color: white;
}

.mongo-gps-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.mongo-gps-btn {
    background: none;
    border: none;
    color: var(--mongo-primary-light);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mongo-gps-btn:hover {
    text-decoration: underline;
}

#gps-status-text,
#setup-gps-status,
#edit-gps-status {
    font-size: 0.78rem;
    opacity: 0.6;
}

/* --- Loading Indicator --- */
.mongo-loading {
    position: fixed;
    inset: 0;
    background: var(--mongo-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10000;
}

.mongo-loading-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--mongo-primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Merchant Panel Layout --- */
.mongo-merchant-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.mongo-card {
    background: var(--mongo-card);
    border: 1px solid var(--mongo-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    height: fit-content;
}

.store-info-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-info-text i {
    width: 16px;
    color: var(--mongo-primary-light);
}

.mongo-btn-secondary {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mongo-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stats-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.stat-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    display: block;
    color: var(--mongo-primary-light);
}

.stat-label {
    font-size: 0.72rem;
    opacity: 0.5;
}

.mongo-form-row {
    display: flex;
    gap: 12px;
}

.mongo-specs-section {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px;
    margin-top: 1.25rem;
}

.spec-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.spec-row input {
    flex: 1;
}

.remove-spec-btn {
    background: none;
    border: none;
    color: var(--mongo-danger);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 8px;
}

.mongo-add-spec-row-btn {
    background: none;
    border: none;
    color: var(--mongo-primary-light);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.mongo-add-spec-row-btn:hover {
    text-decoration: underline;
}

/* --- Merchant Part List (Table) --- */
.merchant-parts-list {
    overflow-x: auto;
}

.merchant-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.merchant-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.5;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.merchant-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.merchant-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.table-part-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.table-part-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: .3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--mongo-success);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

.btn-delete-row {
    background: none;
    border: none;
    color: var(--mongo-danger);
    cursor: pointer;
    padding: 8px;
    font-size: 0.95rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-delete-row:hover {
    opacity: 1;
}

/* --- WhatsApp Quick Update Styles --- */
.mongo-quick-update-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.mongo-quick-update-container {
    background: var(--mongo-card);
    border: 1px solid var(--mongo-border);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.6s ease;
}

.quick-status-block {
    text-align: center;
    padding: 2rem 0;
}

.quick-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.quick-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
}

.location-sub {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 4px;
}

.quick-instructions {
    background: rgba(47, 128, 237, 0.08);
    border: 1px solid var(--mongo-border);
    border-radius: 12px;
    padding: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.quick-parts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.quick-part-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-part-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.quick-part-item input[type="checkbox"] {
    accent-color: var(--mongo-success);
    width: 20px;
    height: 20px;
}

.quick-part-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.quick-part-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.quick-part-price {
    font-size: 0.8rem;
    color: var(--mongo-success);
    font-weight: 600;
    margin-top: 2px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Layout adjustments --- */
@media (max-width: 900px) {
    .mongo-layout {
        grid-template-columns: 1fr;
    }
    .mongo-sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        bottom: 0;
        width: 300px;
        z-index: 1005;
        border-radius: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    .mongo-sidebar.active {
        left: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }
    .close-filters-btn {
        display: block;
    }
    .mobile-filters-trigger {
        display: block;
    }
    .mongo-merchant-layout {
        grid-template-columns: 1fr;
    }
    .mongo-header {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .mongo-header {
        height: auto;
        flex-direction: column;
        padding: 0.75rem 1rem;
        gap: 10px;
        align-items: center;
    }
    .mongo-logo-wrapper {
        justify-content: center;
    }
    .mongo-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .mongo-nav-btn {
        flex: 1;
        justify-content: center;
        padding: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 500px) {
    .mongo-container {
        padding: 1rem;
    }
    .mongo-hero-title {
        font-size: 1.6rem;
    }
    .mongo-hero-subtitle {
        font-size: 0.88rem;
    }
    .mongo-search-bar-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .mongo-search-input-container {
        width: 100%;
    }
    #mongo-search-input {
        padding: 14px 15px 14px 44px;
        font-size: 0.9rem;
    }
    #mongo-search-btn {
        width: 100%;
        height: 50px;
        padding: 0;
        font-size: 0.95rem;
    }
    .mongo-form-row {
        flex-direction: column;
        gap: 0;
    }
}
