/* Google Maps Scraper floating UI styling */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.prospectpilot_page {
    width: 250px;
    height: auto;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 60px;
    margin-bottom: 20px;
    margin-left: 12px;
    margin-right: 12px;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: #f8fafc;
    box-sizing: border-box;
    z-index: 9999;
}

#prospectpilot_leads_info {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

/* Common button styles */
.prospectpilot_button {
    width: 100%;
    height: 44px;
    appearance: none;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
}

/* Action button variants */
#prospectpilot_start_btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

#prospectpilot_start_btn.stop-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    animation: prospectpilot-pulse 2s infinite;
}

#prospectpilot_download_btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

#prospectpilot_clear_btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

/* Button interactions */
.prospectpilot_button:hover {
    transform: translateY(-2px);
}

.prospectpilot_button:active {
    transform: translateY(0);
}

#prospectpilot_start_btn:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

#prospectpilot_start_btn.stop-btn:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45) !important;
}

#prospectpilot_download_btn:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

#prospectpilot_clear_btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Email toggle switch styling */
.prospectpilot_toggle_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prospectpilot_toggle_label {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}

/* Toggle Switch Pill */
.prospectpilot_switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.prospectpilot_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.prospectpilot_slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prospectpilot_slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #f8fafc;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.prospectpilot_slider {
    background-color: #6366f1;
}

input:focus+.prospectpilot_slider {
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

input:checked+.prospectpilot_slider:before {
    transform: translateX(20px);
}

/* Review Count Filter */
.prospectpilot_filter_container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prospectpilot_filter_label {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}

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

.prospectpilot_filter_select {
    width: 52px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding: 0 8px;
    transition: all 0.2s ease;
}

.prospectpilot_filter_select:hover,
.prospectpilot_filter_select:focus {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
}

.prospectpilot_filter_select option {
    background: #1e293b;
    color: #f8fafc;
}

.prospectpilot_filter_input {
    flex: 1;
    height: 34px;
    width: 100px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    padding: 0 10px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.prospectpilot_filter_input::placeholder {
    color: #64748b;
}

.prospectpilot_filter_input:hover,
.prospectpilot_filter_input:focus {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

/* Hide number input spinners */
.prospectpilot_filter_input::-webkit-outer-spin-button,
.prospectpilot_filter_input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Animations */
@keyframes prospectpilot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}