/* Basic CSS styles for the Google Maps Scraper */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.navbar {
    margin-bottom: 2rem;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.builder-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,.12);
    margin-bottom: 2rem;
}

.builder-header {
    background: linear-gradient(135deg,#0f172a 0%,#111827 100%);
    color: #fff;
    padding: 22px 28px;
    border-radius: 18px 18px 0 0;
}

.builder-body {
    padding: 18px;
    background: linear-gradient(#f9fafb, #f5f6f9);
}

.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Ensure builder dropdowns stay readable on all states */
.form-select,
.builder-body select {
    background-color: #fff;
    color: #000;
    border-radius: 8px;
}

.form-select option,
.builder-body select option {
    color: #000;
    background-color: #fff;
}

.form-select option:hover,
.builder-body select option:hover,
.form-select option:checked,
.builder-body select option:checked {
    background-color: #e2edff;
    color: #000;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background-color: #343a40;
    color: white;
    border: none;
}

.extension-banner {
    background: #0d6efd;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    text-align: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-weight: 600;
}

.brand-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(226, 232, 240, 0.66);
    font-weight: 600;
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Chat widget styles */
.ace-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.ace-chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    z-index: 9998;
}

.chat-bubble {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 9997;
}

@media (max-width: 768px) {
    .ace-chatbot {
        width: 90%;
        height: 70%;
        bottom: 0;
        right: 5%;
        left: 5%;
        border-radius: 12px 12px 0 0;
    }
}

.demo-results-blur {
    filter: blur(5px);
    transition: filter 0.2s ease;
}
.demo-results-blur,
.demo-results-blur * {
    pointer-events: none !important;
    user-select: none !important;
}

.ls-table-wrapper {
    position: relative;
    --lock-overlay-max: 640px;
    --lock-overlay-padding: 0.75rem;
    --lock-card-padding: clamp(0.5rem, 1.2vw, 1rem);
    --lock-card-gap: clamp(0.5rem, 1vw, 1rem);
    --lock-card-radius: 16px;
    --lock-card-align: center;
    --lock-icon-size: 48px;
    --lock-icon-font: 1.25rem;
    --lock-body-margin: 0 0.65rem;
    --lock-body-line: 1.3;
    --lock-title-size: 1.2rem;
    --lock-body-font: 0.82rem;
    --lock-body-margin-top: 0.3rem;
    --lock-grid-gap: 0.4rem;
    --lock-benefits-font: 0.8rem;
    --lock-benefits-gap: 0.18rem;
}

.ls-table-wrapper[data-lock-width="stretch"] {
    --lock-overlay-max: 960px;
    --lock-overlay-padding: 1.25rem;
    --lock-card-padding: clamp(1.1rem, 1.8vw, 2.1rem);
    --lock-card-gap: clamp(1rem, 1.7vw, 2rem);
    --lock-card-radius: 20px;
    --lock-card-align: flex-start;
    --lock-icon-size: 64px;
    --lock-icon-font: 1.5rem;
    --lock-body-margin: 0 1rem;
    --lock-body-line: 1.5;
    --lock-title-size: 1.4rem;
    --lock-body-font: 0.92rem;
    --lock-body-margin-top: 0.55rem;
    --lock-grid-gap: 0.75rem;
    --lock-benefits-font: 0.87rem;
    --lock-benefits-gap: 0.3rem;
}

.demo-lock-overlay[hidden] {
    display: none;
}
.demo-lock-overlay {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--lock-overlay-max, 640px), calc(100% - clamp(20px, 4vw, 60px)));
    z-index: 6;
    pointer-events: none;
    padding: 0 var(--lock-overlay-padding, 0.75rem);
}
.demo-lock-overlay .demo-lock-card {
    pointer-events: auto;
}

.demo-lock-row {
    display: none;
}
.demo-lock-card {
    display: flex;
    gap: var(--lock-card-gap, clamp(0.5rem, 1vw, 1rem));
    align-items: var(--lock-card-align, center);
    justify-content: space-between;
    padding: var(--lock-card-padding, clamp(0.5rem, 1.2vw, 1rem));
    border-radius: var(--lock-card-radius, 16px);
    background: linear-gradient(135deg, #05070f, #131f32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 22px 36px rgba(5, 7, 15, 0.3);
    backdrop-filter: blur(5px);
    text-align: left;
    width: min(var(--lock-overlay-max, 640px), 100%);
    margin: 0 auto;
}
.demo-lock-icon {
    width: var(--lock-icon-size, 48px);
    height: var(--lock-icon-size, 48px);
    border-radius: calc(var(--lock-icon-size, 48px) / 3.5);
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--lock-icon-font, 1.25rem);
    color: #ffffff;
}
.demo-lock-body {
    flex: 1;
    margin: var(--lock-body-margin, 0 0.65rem);
    color: #ffffff;
    line-height: var(--lock-body-line, 1.3);
}
.demo-lock-eyebrow {
    margin: 0 0 0.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
}
.demo-lock-body h3 {
    margin: 0;
    font-size: var(--lock-title-size, 1.2rem);
    color: #ffffff;
}
.demo-lock-body p {
    margin: var(--lock-body-margin-top, 0.3rem) 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--lock-body-font, 0.82rem);
}
.demo-lock-grid {
    margin-top: var(--lock-body-margin-top, 0.3rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--lock-grid-gap, 0.4rem);
}
.demo-lock-benefits {
    margin: 0.05rem 0 0;
    padding-left: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: var(--lock-benefits-gap, 0.18rem);
    color: #f0f4ff;
    font-size: var(--lock-benefits-font, 0.8rem);
    line-height: 1.25;
}
.demo-lock-benefits li {
    list-style: disc;
}
.email-lock-card {
    background: #ffffff;
    border: 1px solid rgba(7, 16, 33, 0.08);
    color: #0c1524;
    box-shadow: 0 35px 60px rgba(5, 7, 15, 0.2);
}
.email-lock-card .demo-lock-icon {
    background: #eef2ff;
    color: #0b1723;
}
.email-lock-card .demo-lock-body,
.email-lock-card .demo-lock-body p,
.email-lock-card .demo-lock-body h3,
.email-lock-card .demo-lock-benefits {
    color: #0c1524;
}
.email-lock-card .demo-lock-eyebrow {
    color: #4b5563;
}
.email-lock-card .demo-lock-body h3 {
    color: #0b1723;
}
.email-lock-card .demo-lock-actions .btn-outline-light {
    color: #0c1524;
    border-color: #0c1524;
}
.demo-lock-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}
.demo-lock-actions .btn {
    min-width: max-content;
}

@media (max-width: 768px) {
    .demo-lock-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .demo-lock-body {
        margin: 1rem 0;
    }
    .demo-lock-actions {
        width: 100%;
    }
    .demo-lock-actions .btn {
        width: 100%;
    }
}
