/**
 * Lead Scraper Pro - Unified Styles
 * Consolidated CSS for both frontend and backend
 * Version: 2.1
 */

/* =================================================================
   CORE STYLES - Shared between frontend and backend
   ================================================================= */

/* Global Container */
.lsp-dashboard-container {
    margin: 0 auto;
    padding: 0px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hide WordPress footer on admin pages */
.toplevel_page_lead-scraper-pro #wpfooter {
    display: none !important;
}

/* Required Field Indicator */
.lsp-required {
    color: #e74c3c;
    margin-left: 3px;
    font-weight: bold;
}

/* =================================================================
   FORM STYLES - Unified form styling
   ================================================================= */

/* Form Groups and Containers */
.lsp-form-group {
    margin-bottom: 25px;
}

.lsp-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

/* Input Fields */
.lsp-input-container {
    position: relative;
}

.lsp-city-input, 
.lsp-radius-select, 
.lsp-categories-select,
.lsp-textarea-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e1e8ed;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.lsp-city-input:focus, 
.lsp-radius-select:focus, 
.lsp-categories-select:focus,
.lsp-textarea-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.lsp-textarea-input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.lsp-textarea-input::placeholder {
    color: #999;
    line-height: 1.4;
}

select#lsp-categories-select {
    height: 250px;
}

/* Field Help Text */
.lsp-field-help {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

/* Credentials Fields */
.lsp-credentials-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lsp-field-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lsp-field-row label {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 0;
}

.lsp-field-row input[type="text"],
.lsp-field-row input[type="email"],
.lsp-field-row input[type="url"],
.lsp-field-row textarea {
    width: 100%;
    max-width: 500px;
}

.lsp-field-row textarea {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
}

.lsp-field-row .description {
    margin-top: 5px;
    margin-bottom: 0;
    font-style: italic;
    color: #666;
}

/* WordPress Form Table Compatibility */
.form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    vertical-align: top;
    font-weight: 600;
    color: #23282d;
}

.form-table td {
    padding: 15px 10px;
    vertical-align: top;
}

.form-table input[type="text"],
.form-table input[type="password"],
.form-table input[type="email"],
.form-table input[type="url"],
.form-table input[type="number"],
.form-table select,
.form-table textarea {
    font-size: 14px;
    box-sizing: border-box;
}

.form-table textarea {
    width: 100%;
    font-family: Monaco, 'Courier New', monospace;
    font-size: 12px;
}

table strong {
    font-weight: 500;
}

/* Form Sections */
.lsp-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.lsp-form-section:last-child {
    border-bottom: none;
}

.lsp-form-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

/* Checkbox and Radio Inputs */
input[type=checkbox], input[type=radio] {
    width: 1rem !important;
}

fieldset label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
}

fieldset label input[type="checkbox"] {
    margin-right: 8px;
}

fieldset .description {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

/* =================================================================
   BUTTON STYLES - Unified button system
   ================================================================= */

/* Primary Button Styles */
.lsp-btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 5px 5px 0;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lsp-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

/* Button Variants */
.lsp-btn-primary {
    background: #3498db;
}

.lsp-btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.lsp-btn-success {
    background: #27ae60;
}

.lsp-btn-danger {
    background: #e74c3c;
}

.lsp-btn-small {
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: normal !important;
}

/* Admin Button Styles */
.lsp-btn-admin {
    background: #0073aa;
    border: 1px solid #0073aa;
    padding: 8px 16px;
    font-size: 13px;
}

.lsp-btn-admin:hover {
    background: #005a87;
    border-color: #005a87;
}

.lsp-btn-admin.secondary {
    background: #f6f7f7;
    color: #555;
    border-color: #ccd0d4;
}

.lsp-btn-admin.secondary:hover {
    background: #f0f0f1;
    border-color: #999;
    color: #333;
}

/* Form Submit Buttons */
.lsp-save-settings {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
}

.lsp-save-settings:hover {
    background: #005a87;
    border-color: #005a87;
}

button#lsp-start-scraping {
    width: 100% !important;
}

.lsp-form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Button Loading States */
.lsp-btn-loader {
    display: none;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

span.lsp-btn-loader {
    justify-content: center;
}

/* =================================================================
   NAVIGATION AND TABS - Unified tab system
   ================================================================= */

/* Dashboard Header */
.lsp-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding-top: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.lsp-admin-header h1 {
    margin: 0;
    padding: 0px;
    color: #1d2327;
}

.lsp-header-actions {
    display: flex;
    gap: 10px;
}

.lsp-header-actions .button {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Dashboard Tabs */
.lsp-dashboard-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 0px 0px 10px 10px;
    justify-content: center;
}

.lsp-tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #646970;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

.lsp-tab-btn:hover {
    background: #ffffff;
    color: #135e96;
    text-decoration: none;
}

.lsp-tab-btn.active {
    background: #ffffff;
    color: #135e96;
    border-bottom-color: #2271b1;
    text-decoration: none;
}

.lsp-tab-btn .dashicons {
    font-size: 16px;
    align-content: center !important;
}

/* Tab Content */
.lsp-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    width: auto;
    margin: 0px 20px;
}

.lsp-tab-content.active {
    display: block !important;
}

/* Tab Content Styling */
div#lsp-tab-overview,
div#lsp-tab-scraper, 
div#lsp-tab-sessions, 
div#lsp-tab-leads, 
div#lsp-tab-auto-scraper, 
div#lsp-tab-results, 
div#lsp-tab-analytics, 
div#lsp-tab-settings, 
div#lsp-tab-logs {
    background: ghostwhite;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Tab Links */
.lsp-tab-link {
    cursor: pointer;
    transition: all 0.2s ease;
}

.lsp-tab-link:hover {
    transform: translateY(-1px);
}

/* =================================================================
   LAYOUT COMPONENTS - Cards, grids, and containers
   ================================================================= */

/* Welcome Banner */
.lsp-welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lsp-welcome-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: white;
}

.lsp-welcome-content p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 16px;
}

.lsp-welcome-stats {
    text-align: right;
}

.lsp-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lsp-feature {
    padding: 5px 0;
    opacity: 0.9;
}

/* Stats Grid and Cards */
.lsp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lsp-stat-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lsp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lsp-stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.lsp-stat-icon img.emoji {
    height: 30px !important;
    width: 30px !important;
    margin: 0px !important;
}

.lsp-stat-content {
    text-align: center !important;
}

.lsp-stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 600;
    color: #1d2327;
}

.lsp-stat-content p {
    margin: 0;
    color: #646970;
    font-size: 14px;
    margin-bottom: 0px;
}

/* Action Grid and Cards */
.lsp-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lsp-action-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.lsp-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #2271b1;
    text-decoration: none;
    color: inherit;
}

.lsp-action-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.lsp-action-content {
    flex: 1;
}

.lsp-action-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #1d2327;
}

.lsp-action-content p {
    margin: 0;
    color: #646970;
    font-size: 14px;
}

.lsp-action-arrow {
    font-size: 20px;
    color: #646970;
    transition: transform 0.2s ease;
}

.lsp-action-card:hover .lsp-action-arrow {
    transform: translateX(5px);
    color: #2271b1;
}

.lsp-action-buttons {
    display: flex;
    gap: 10px;
}

.lsp-action-buttons a {
    text-decoration: none;
}

/* Status Components */
.lsp-status-grid {
    display: inline-flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
}

.lsp-status-item {
    width: 100%;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.lsp-status-item.status-ok {
    border-color: #00a32a;
    background: #f6fff7;
}

.lsp-status-item.status-error {
    border-color: #d63638;
    background: #fff6f6;
}

.lsp-status-icon {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
}

.lsp-status-text {
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
}

/* =================================================================
   STATUS INDICATORS AND BADGES
   ================================================================= */

/* Status Badges */
.lsp-status-badge, 
.lsp-level-badge, 
.lsp-lead-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.lsp-status-completed, .lsp-status-ok { background: #00a32a; color: white; }
.lsp-status-running, .lsp-status-warning { background: #ffb900; color: white; }
.lsp-status-error, .lsp-status-failed { background: #dc3232; color: white; }
.lsp-status-new, .lsp-status-pending { background: #72aee6; color: white; }
.lsp-status-processing { background: #f39c12; color: white; }

/* Status Indicators */
.lsp-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.lsp-status-indicator.active {
    background: #46b450;
}

.lsp-status-indicator.inactive {
    background: #d63638;
}

.lsp-status-indicator.warning {
    background: #ffb900;
}

/* Integration Status */
.lsp-integration-status {
    display: flex;
    flex-direction: column;
}

.lsp-integration-status-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 10px;
}

.lsp-integration-status-indicator.active {
    background: #ecf7ed;
    color: #46b450;
}

.lsp-integration-status-indicator.inactive {
    background: #fcf2f2;
    color: #d63638;
}

/* =================================================================
   NOTIFICATIONS AND ALERTS
   ================================================================= */

/* Notices */
.lsp-notice {
    margin: 15px 0;
    padding: 10px 15px;
    border-left: 4px solid #0073aa;
    background: #f7f7f7;
}

.lsp-notice.error {
    border-color: #d63638;
    background: #fcf2f2;
}

.lsp-notice.success {
    border-color: #46b450;
    background: #ecf7ed;
}

.lsp-notice.warning {
    border-color: #ffb900;
    background: #fff8e5;
}

/* Messages */
.lsp-message {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: 500;
}

.lsp-message.success {
    background: #ecf7ed;
    border: 1px solid #46b450;
    color: #155724;
}

.lsp-message.error {
    background: #fcf2f2;
    border: 1px solid #d63638;
    color: #721c24;
}

.lsp-message.warning {
    background: #fff8e5;
    border: 1px solid #ffb900;
    color: #856404;
}

.lsp-message.info {
    background: #e7f3ff;
    border: 1px solid #0073aa;
    color: #004085;
}

/* Notification System */
.lsp-notification {
    position: fixed;
    top: 32px; /* Above WordPress admin bar */
    right: 20px;
    z-index: 100000;
    padding: 15px 20px;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    max-width: 400px;
    word-wrap: break-word;
}

.lsp-notification.show {
    transform: translateX(0);
}

.lsp-notification-success {
    background: #10b981;
    color: white;
    border-left: 4px solid #059669;
}

.lsp-notification-error {
    background: #ef4444;
    color: white;
    border-left: 4px solid #dc2626;
}

.lsp-notification-info {
    background: #3b82f6;
    color: white;
    border-left: 4px solid #2563eb;
}

.lsp-notification-warning {
    background: #f59e0b;
    color: white;
    border-left: 4px solid #d97706;
}

.lsp-notification:hover {
    opacity: 0.9;
    transform: translateX(-5px);
}

/* =================================================================
   INTERACTIVE COMPONENTS
   ================================================================= */

/* Popular Categories */
.lsp-popular-categories {
    margin-bottom: 20px;
}

.lsp-popular-categories h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.lsp-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lsp-category-chip {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lsp-category-chip:hover {
    background: #3498db;
    color: #fff;
}

.lsp-category-chip.selected {
    background: #3498db;
    color: #fff;
    border-color: #2980b9;
}

/* Focus Options */
.lsp-focus-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lsp-focus-btn {
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    color: #2c3e50;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lsp-focus-btn:hover {
    background: #3498db;
    color: #fff;
    border-color: #2980b9;
}

.lsp-focus-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #2980b9;
}

/* Search Type Options */
.lsp-search-type-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.lsp-radio-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.lsp-radio-option:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.lsp-radio-option input[type="radio"] {
    margin: 0 8px 8px 0;
}

.lsp-radio-option input[type="radio"]:checked + span {
    color: #007cba;
    font-weight: 600;
}

.lsp-radio-option:has(input[type="radio"]:checked) {
    border-color: #007cba;
    background: #f0f8ff;
}

.lsp-radio-option span {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 5px;
}

.lsp-radio-option small {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.3;
}

/* Advanced Options */
.lsp-advanced-options {
    margin-top: 20px;
}

.lsp-toggle-advanced {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lsp-toggle-icon {
    transition: transform 0.3s ease;
}

.lsp-toggle-advanced.active .lsp-toggle-icon {
    transform: rotate(180deg);
}

.lsp-advanced-content {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.lsp-advanced-content.show {
    display: block;
}

.lsp-number-input {
    width: 120px;
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
}

/* Suggestions Dropdown */
.lsp-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.lsp-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.lsp-suggestion-item:hover {
    background: #f8f9fa;
}

.lsp-suggestion-item:last-child {
    border-bottom: none;
}

/* =================================================================
   PROGRESS AND LOADING STATES
   ================================================================= */

/* Loading States */
.lsp-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

/* Spinner */
.lsp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff40;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Progress Components */
.lsp-progress-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    margin-top: 30px;
}

.lsp-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lsp-progress-stats {
    display: flex;
    gap: 20px;
}

.lsp-stat {
    color: #7f8c8d;
    font-size: 14px;
}

.lsp-stat strong {
    color: #2c3e50;
}

.lsp-progress-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.lsp-progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    width: 0%;
    transition: width 0.3s ease;
}

.lsp-progress-log {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
}

.lsp-progress-log .log-entry {
    margin-bottom: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #e1e8ed;
}

.lsp-progress-log .log-entry:last-child {
    border-bottom: none;
}

.lsp-progress-log .log-timestamp {
    color: #7f8c8d;
    font-size: 12px;
}

.lsp-progress-log .log-message {
    color: #2c3e50;
    margin-left: 10px;
}

/* =================================================================
   MODALS AND POPUPS
   ================================================================= */

/* Unified Modal Styles */
.lsp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal Z-Index Hierarchy */
div#lsp-session-results-modal{
    z-index: 8999;
}

#lsp-lead-details-modal{
    z-index: 9999;
}

#lsp-universal-modal {
    z-index: 10999;
}

/* Edit Modals: Higher than view */
.lsp-modal[id*="edit"],
.lsp-modal.lsp-edit-modal {
    z-index: 11999;
}

/* Notes Modals: Highest level */
#lsp-add-note-modal,
.lsp-modal[id*="note"],
.lsp-modal.lsp-notes-modal {
    z-index: 12999;
}

/* =================================================================
   LOADING STYLES - Remove any unwanted pseudo-elements
   ================================================================= */

/* Ensure no ::after pseudo-element on loading text */
.lsp-loading::after {
    display: none !important;
    content: none !important;
}

/* =================================================================
   ACCORDION STYLES - Collapsible sections
   ================================================================= */

/* Accordion Container */
.lsp-accordion {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    margin: 15px 0;
    overflow: hidden;
}

/* Accordion Header */
.lsp-accordion-header {
    padding: 12px 16px;
    margin: 0;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    user-select: none; /* Prevent text selection */
}

/* Accordion Toggle Arrow */
.lsp-accordion-toggle {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.lsp-accordion-open .lsp-accordion-toggle {
    transform: rotate(120deg);
}

/* Accordion Content */
.lsp-accordion-content {
    padding: 16px;
    background: #ffffff;
    display: none; /* Closed by default */
    border-top: 1px solid #e1e5e9;
}

.lsp-accordion-content.lsp-accordion-open {
    display: block;
}

/* AI Insights specific styling */
.lsp-ai-insights.lsp-accordion .lsp-insights-content {
    padding: 0; /* Remove extra padding since accordion-content handles it */
    line-height: 1.6;
    font-size: 14px;
}

.lsp-ai-insights.lsp-accordion .lsp-accordion-content {
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 0px;
}

.lsp-ai-insights.lsp-accordion .lsp-insights-meta {
    margin-top: 30px;
    padding-top: 1px;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
}

.lsp-ai-insights.lsp-accordion br + br {
    display: none;
}

/* =================================================================
   MODAL STYLES - Unified modal appearance
   ================================================================= */

.lsp-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 2% auto;
    padding: 0;
    border: 1px solid #ddd;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lsp-edit-lead-form .lsp-form-grid .lsp-form-group input {
    width: -webkit-fill-available;
}

.lsp-edit-lead-form .lsp-form-grid .lsp-form-group {
    margin: 0px;
}

.lsp-edit-lead-form .lsp-form-actions button.lsp-btn.lsp-btn-secondary.lsp-modal-close {
    height: unset;
}

form#lsp-add-note-form {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    background: #fff;
    padding: 30px;
    border: none;
}

form#lsp-edit-auto-scrape-form {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    background: #fff;
    padding: 30px;
    border: none;
}

form#lsp-edit-auto-scrape-form input {
    width: -webkit-fill-available;
}

div#lsp-edit-auto-scrape-modal .lsp-modal-footer {
    display: inline-flex;
    flex-direction: row-reverse;
    width: -webkit-fill-available;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
}

div#lsp-edit-auto-scrape-modal button.button.button-secondary.lsp-modal-close {
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: auto;
}

div#lsp-edit-auto-scrape-modal button#lsp-save-auto-scrape {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

div#lsp-edit-auto-scrape-modal button:hover {
    transform: translateY(-2px);
}

div#lsp-edit-auto-scrape-modal button#lsp-save-auto-scrape:hover {
    background: #2980b9;
    border-color: #005a87;
    color: #fff;
}

form#lsp-add-note-form .lsp-form-actions {
    justify-content: flex-start;
}

.lsp-notes-list {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    background: #fff;
    padding: 30px;
    border: none;
    padding-top: 0px;
}

.lsp-notes-list .lsp-note-meta {
    margin-bottom: 0px;
}

/* Unified Modal Header Styles */
.lsp-modal-header,
.lsp-modal-content .lsp-modal-header,
.lsp-results-header,
.lsp-modal-content .lsp-results-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

.lsp-modal-header h2,
.lsp-modal-header h3,
.lsp-modal-content .lsp-modal-header h2,
.lsp-modal-content .lsp-modal-header h3,
.lsp-results-header h2,
.lsp-results-header h3,
.lsp-modal-content .lsp-results-header h2,
.lsp-modal-content .lsp-results-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.lsp-modal-close {
    background: #222;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lsp-modal-close:hover {
    background: #2980B9;
    color: #fff;
}

.lsp-modal-body {
    padding: 30px;
}

.lsp-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Change in Modal - Header styles now unified above */

.lsp-modal-content h2 {
    border: none !important;
    margin-top: 0;
    padding-bottom: 0px;
}

.lsp-modal-content .lsp-modal-body {
    padding: 0;
}

.lsp-modal-content .lsp-results-section {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    background: #fff;
    padding: 30px;
    border: none;
}

/* .lsp-modal-content .lsp-results-header styles now unified above */

.lsp-modal-content .lsp-results-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0;
    border: 1px solid #ccd0d4;
    margin-top: 30px;
    margin-bottom: 0px;
}

.lsp-modal-content .lsp-results-summary h4 {
    margin-top: 0px;
}

.lsp-modal-content .lsp-results-table-container {
    padding: 0px;
    margin: 30px 0px 0px;
    border-radius: 0;
    border: 1px solid #ccd0d4;
}

.lsp-modal-content .lsp-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0px;
}

.lsp-modal-content .lsp-action-buttons .lsp-btn {
    margin: 0px;
}

/* Modal Body Top - Action buttons at top of modal */
.lsp-modal-body-top {
    padding: 15px 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

.lsp-modal-body-top .lsp-btn {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    padding: 6px 12px;
    height: 40px;
    justify-content: center;
}

.lsp-modal-body-top .lsp-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Modal Footer - Keep for backward compatibility but hide by default */
.lsp-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
    display: none; /* Hidden since buttons moved to top */
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-radius: 0 0 8px 8px;
}

.lsp-modal-footer .lsp-btn {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 40px;
    justify-content: center;
}

.lsp-modal-footer .lsp-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Status indicators */
.lsp-status-indicator {
    font-size: 12px;
    color: #666;
    font-style: italic;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 3px;
}

/* Action button spacing in tables */
.lsp-action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.lsp-action-buttons .lsp-btn {
    margin: 0;
    font-size: 12px;
    padding: 4px 8px;
}

/* Button color variants */
.lsp-btn-success {
    background-color: #46b450;
    border-color: #46b450;
    color: #fff;
}

.lsp-btn-success:hover {
    background-color: #3e9f4a;
    border-color: #3e9f4a;
}

.lsp-btn-danger {
    background-color: #dc3232;
    border-color: #dc3232;
    color: #fff;
}

.lsp-btn-danger:hover {
    background-color: #c62d2d;
    border-color: #c62d2d;
}

.lsp-modal-content .lsp-results-table td {
    vertical-align: middle;
}

/* Unified table styling for all tab tables */
.lsp-sessions-table-container table,
.lsp-results-table-container table,
.lsp-logs-table-container table,
.lsp-auto-scrapes-list table {
    width: 100%;
}

.lsp-sessions-table-container table th,
.lsp-results-table-container table th,
.lsp-logs-table-container table th,
.lsp-auto-scrapes-list table th {
    padding: 8px;
    text-align: left;
    border: 0px solid #e1e8ed;
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.lsp-sessions-table-container table td,
.lsp-results-table-container table td,
.lsp-logs-table-container table td,
.lsp-auto-scrapes-list table td {
    padding: 8px;
    text-align: left;
    border-top: 1px solid #e1e8ed;
    font-size: 13px;
    font-weight: 400;
}

.lsp-sessions-table-container table thead,
.lsp-results-table-container table thead,
.lsp-logs-table-container table thead,
.lsp-auto-scrapes-list table thead {
    text-align: left;
}

/* Unified action buttons for all table types */
.lsp-session-action-buttons,
.lsp-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex-direction: row;
}

.lsp-session-action-buttons .lsp-btn,
.lsp-action-buttons .lsp-btn {
    margin: 0px;
    width: fit-content;
}

/* Hide "No results" span when session is running */
.lsp-status-running .lsp-no-actions,
tr:has(.lsp-status-running) .lsp-no-actions,
tbody tr td:has(.lsp-status-running) ~ td .lsp-no-actions {
    display: none;
}

/* Alternative approach for better browser support */
.lsp-sessions-table-container tbody tr:has(.lsp-status-running) .lsp-no-actions {
    display: none !important;
}


/* Lead Details in Modal */
.lsp-lead-details {
    display: grid;
    gap: 0px;
}

.lsp-detail-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.lsp-detail-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.lsp-detail-section p {
    margin: 8px 0;
    line-height: 1.5;
}

.lsp-detail-section strong {
    color: #2c3e50;
    font-weight: 600;
}

/* JSON Display Components */
.lsp-json-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.lsp-json-item {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #17a2b8;
}

.lsp-json-item:last-child {
    margin-bottom: 0;
}

.lsp-json-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.lsp-json-value {
    color: #6c757d;
    word-break: break-word;
}

.lsp-json-object {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.lsp-json-array {
    background: #e8f5e8;
    border-left-color: #4caf50;
}

.lsp-contact-item {
    display: inline-block;
    background: #e7f3ff;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* =================================================================
   DATA TABLES AND RESULTS
   ================================================================= */

/* Results Section */
.lsp-results-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin: 20px 0;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* .lsp-results-header styles now unified above */

.lsp-results-actions {
    display: flex;
    gap: 10px;
}

.lsp-results-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.lsp-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lsp-stat-item {
    text-align: center;
}

.lsp-stat-label {
    display: block;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.lsp-stat-value {
    display: block;
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

/* Results Table - container overflow only */
.lsp-results-table-container {
    overflow-x: auto;
}

.lsp-results-table {
    border-collapse: collapse;
    margin-top: 20px;
}

/* Results table specific borders only - padding and alignment inherited from unified rules */
.lsp-results-table th,
.lsp-results-table td {
    border-bottom: 1px solid #e1e8ed;
}

.lsp-results-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.lsp-results-table tr:hover {
    background: #f8f9fa;
}

.lsp-rating {
    color: #f39c12;
    font-weight: bold;
}

.lsp-no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* =================================================================
   SPECIFIC COMPONENT STYLES - Extracted from view files
   ================================================================= */

/* Logs Component Styles */
.lsp-log-stats {
    display: flex;
    gap: 20px;
    margin: 0px 0 20px;
}

.lsp-log-stats .lsp-stat-card {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    min-width: 120px;
}

.lsp-log-stats .lsp-stat-card.error { border-left: 4px solid #dc3232; }
.lsp-log-stats .lsp-stat-card.warning { border-left: 4px solid #ffb900; }
.lsp-log-stats .lsp-stat-card.info { border-left: 4px solid #0073aa; }
.lsp-log-stats .lsp-stat-card.debug { border-left: 4px solid #666; }

.lsp-log-filters {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

/* Sessions Component Styles */
.lsp-sessions-summary {
    margin: 0px 0px 20px;
}

.lsp-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lsp-summary-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

/* Auto Scraper Component Styles */
.lsp-auto-scraper-container {
    max-width: 100%;
}

.lsp-auto-scraper-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.lsp-auto-scraper-header h2 {
    margin: 0 0 10px 0;
    color: #23282d;
}

.lsp-auto-scraper-header p {
    margin: 0;
    color: #646970;
}

/* Analytics Component Styles */
.lsp-analytics {
    padding: 0px 0px 20px;
}

.lsp-analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lsp-analytics .lsp-summary-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

/* Leads Component Styles */
.lsp-results-filters {
    background: #f9f9f9;
    padding: 15px;
    margin: 0px 0px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lsp-results-filters a.button, .lsp-log-filters a.button {
    font-size: 12px;
}

.lsp-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.lsp-search-input {
    flex: 1;
    min-width: 200px;
}

/* =================================================================
   SETTINGS AND CONFIGURATION STYLES
   ================================================================= */

/* Settings Container */
.lsp-settings-container {
    margin: 0;
    padding: 0;
}

.lsp-settings-container .lsp-admin-container {
    margin: 0px;
}

/* Admin Container - Settings Layout */
.lsp-admin-container {
    display: flex;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

/* Navigation Tabs for Settings */
.lsp-admin-nav {
    width: 200px;
    background: #f9f9f9;
    border-right: 1px solid #e1e1e1;
}

.lsp-nav-tabs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lsp-nav-tab {
    display: block;
    margin: 0;
    border-bottom: 1px solid #e1e1e1;
}

.lsp-nav-tab a,
.lsp-nav-tab {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: auto;
    text-align: left;
    font-size: 14px;
}

.lsp-nav-tab:hover {
    background: #f0f0f1;
    color: #0073aa;
}

.lsp-nav-tab.active {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

.lsp-nav-tab.active:hover {
    background: #005a87;
}

/* Content Area */
.lsp-admin-content {
    flex: 1;
    padding: 0;
}

.lsp-tab-content {
    display: none;
    padding: 20px;
}

.lsp-tab-content.active {
    display: block;
}

.lsp-modal-body .lsp-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
    display: inline-flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: -webkit-fill-available;
    line-height: 0;
}

.lsp-tab-content h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
    color: #23282d;
}

.lsp-tab-content h3 {
    color: #23282d;
}

/* API Sections */
.lsp-api-section {
    background: #fafafa;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.lsp-api-section h4 {
    margin-top: 0;
    color: #0073aa;
}

/* Test Results */
.lsp-test-api {
    margin-top: 10px;
}

.lsp-test-result {
    margin-top: 10px;
    padding: 10px;
    border-left: 4px solid #0073aa;
    background: #f7f7f7;
    display: none;
}

.lsp-test-result.success {
    border-color: #46b450;
    background: #ecf7ed;
}

.lsp-test-result.error {
    border-color: #d63638;
    background: #fcf2f2;
}

/* Password Toggle */
.lsp-password-field {
    margin-right: 10px;
}

.lsp-toggle-password {
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid #ccd0d4;
    background: #f6f7f7;
    color: #555;
    cursor: pointer;
    border-radius: 3px;
    text-decoration: none;
}

.lsp-toggle-password:hover {
    background: #f0f0f1;
    border-color: #999;
}

/* Data Extraction Settings */
.lsp-extraction-summary {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
}

.lsp-extraction-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

.lsp-impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.lsp-impact-item {
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.lsp-impact-item strong {
    color: #007cba;
    font-weight: 600;
}

/* Data extraction specific styling */
#data-extraction .form-table th {
    width: 200px;
    font-weight: 600;
    color: #23282d;
}

#data-extraction .form-table td {
    padding: 20px 10px;
}

#data-extraction fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

#data-extraction legend {
    display: none;
}

#data-extraction strong {
    color: #d63384;
    font-size: 12px;
}

/* AI Analysis Preview */
.lsp-ai-analysis-preview {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.lsp-ai-analysis-preview h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
}

.lsp-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.lsp-preview-input,
.lsp-preview-output {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.lsp-preview-input h4,
.lsp-preview-output h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #23282d;
    font-size: 14px;
    font-weight: 600;
}

.lsp-sample-data {
    line-height: 1.6;
    color: #555;
    font-size: 13px;
}

.lsp-sample-data strong {
    color: #23282d;
    font-weight: 600;
}

.lsp-ai-analysis-result {
    line-height: 1.6;
    color: #555;
    font-size: 13px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.lsp-preview-output em {
    color: #666;
    font-style: italic;
}

.lsp-preview-output .error {
    margin: 0;
}

#lsp-ai-preview-loading {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

#lsp-ai-preview-loading .spinner {
    float: none;
    margin-right: 8px;
    margin-top: 0;
}

/* =================================================================
   TOOLTIPS AND HELP
   ================================================================= */

/* Tooltips */
.lsp-tooltip {
    position: relative;
    cursor: help;
}

.lsp-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 1000;
}

.lsp-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Code Fields */
.lsp-code-field {
    font-family: Monaco, 'Courier New', monospace;
    font-size: 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    white-space: pre;
    overflow-x: auto;
}

/* =================================================================
   ANIMATIONS
   ================================================================= */

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

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

@keyframes lsp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation Classes */
.lsp-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.lsp-slide-up {
    animation: slideUp 0.3s ease-out;
}

/* =================================================================
   SELECT2 CUSTOMIZATION
   ================================================================= */

.select2-container--default .select2-selection--multiple {
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    padding: 8px;
}

.select2-container--default .select2-selection--multiple:focus {
    border-color: #3498db;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 2px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-right: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #f8f9fa;
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

.lsp-text-center { text-align: center; }
.lsp-text-right { text-align: right; }
.lsp-mb-0 { margin-bottom: 0; }
.lsp-mb-10 { margin-bottom: 10px; }
.lsp-mb-20 { margin-bottom: 20px; }
.lsp-mt-0 { margin-top: 0; }
.lsp-mt-10 { margin-top: 10px; }
.lsp-mt-20 { margin-top: 20px; }
.lsp-hidden { display: none; }
.lsp-visible { display: block; }
.lsp-flex { display: flex; }
.lsp-flex-wrap { flex-wrap: wrap; }
.lsp-gap-10 { gap: 10px; }
.lsp-gap-20 { gap: 20px; }
.lsp-w-full { width: 100%; }
.lsp-text-sm { font-size: 14px; }
.lsp-text-lg { font-size: 18px; }
.lsp-font-bold { font-weight: bold; }
.lsp-text-primary { color: #3498db; }
.lsp-text-success { color: #27ae60; }
.lsp-text-warning { color: #f39c12; }
.lsp-text-danger { color: #e74c3c; }
.lsp-text-muted { color: #7f8c8d; }

/* =================================================================
   LEGACY SUPPORT AND CLEANUP
   ================================================================= */

/* Remove extra margins/padding from integrated content */
.lsp-tab-content .wrap {
    margin: 0;
    padding: 0;
}

.lsp-tab-content h1 {
    display: none; /* Hide page titles within tabs */
}

#lsp-tab-results .wrap,
#lsp-tab-logs .wrap {
    margin: 0;
    padding: 0;
}

#lsp-tab-results h1,
#lsp-tab-logs h1 {
    margin-bottom: 20px;
    color: #1d2327;
}

p.submit {
    text-align: left;
    max-width: 100%;
    margin: 0px;
    padding: 20px;
}

.button-hero {
    padding: 12px 24px !important;
    font-size: 16px !important;
    height: auto !important;
}

.button-hero .dashicons.dashicons-search {
    margin-right: 10px;
}

button#lsp-start-first-session {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}

/* Recent Activity */
.lsp-recent-activity {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Activity summary spacing handled by individual .lsp-activity-item styles */

.lsp-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
}

.lsp-activity-item:last-child {
    border-bottom: none;
}

.lsp-activity-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.lsp-activity-text {
    flex: 1;
    font-size: 14px;
    color: #1d2327;
}

.lsp-activity-time {
    font-size: 12px;
    color: #646970;
}

/* Search Fields Containers */
.lsp-search-fields {
    transition: all 0.3s ease;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 768px) {
    /* Header and Navigation */
    .lsp-admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* Settings Admin Container Responsive */
    .lsp-admin-container {
        flex-direction: column;
    }
    
    .lsp-admin-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e1e1e1;
    }
    
    .lsp-nav-tabs {
        display: flex;
        overflow-x: auto;
    }
    
    .lsp-nav-tab {
        border-bottom: none;
        border-right: 1px solid #e1e1e1;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .lsp-nav-tab:last-child {
        border-right: none;
    }
    
    .lsp-dashboard-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .lsp-tab-btn {
        padding: 12px 15px;
        font-size: 13px;
        flex-shrink: 0;
        min-width: 120px;
    }
    
    /* Content Areas */
    .lsp-dashboard-container {
        padding: 15px;
    }
    
    .lsp-dashboard-header h2 {
        font-size: 2rem;
    }
    
    .lsp-scraping-form {
        padding: 20px;
    }
    
    /* Components */
    .lsp-welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .lsp-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .lsp-action-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lsp-status-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    /* Form Elements */
    .lsp-category-chips {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lsp-category-chip {
        text-align: center;
    }
    
    .lsp-focus-options {
        flex-direction: column;
    }
    
    .lsp-search-type-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .lsp-radio-option {
        padding: 12px;
    }
    
    /* Tables */
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .form-table th {
        border-bottom: none;
    }
    
    .lsp-results-table {
        font-size: 14px;
    }
    
    .lsp-results-table th,
    .lsp-results-table td {
        padding: 8px;
    }
    
    /* Progress and Actions */
    .lsp-progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .lsp-progress-stats {
        flex-wrap: wrap;
    }
    
    .lsp-modal-header,
    .lsp-modal-content .lsp-modal-header,
    .lsp-results-header,
    .lsp-modal-content .lsp-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .lsp-results-actions {
        width: 100%;
    }
    
    .lsp-btn {
        width: 100%;
        text-align: center;
    }
    
    .lsp-action-buttons {
        flex-direction: column;
    }
    
    .lsp-summary-stats {
        grid-template-columns: 1fr;
    }
    
    /* Modals use unified .lsp-modal-content */
    

    
    .lsp-detail-section {
        padding: 15px;
    }
    
    /* Notifications */
    .lsp-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 46px; /* Mobile admin bar height */
    }
    
    .no-admin-bar .lsp-notification {
        top: 10px;
    }
    
    /* Settings */
    .lsp-preview-container {
        grid-template-columns: 1fr;
    }
}

/* WordPress frontend specific */
.no-admin-bar .lsp-notification {
    top: 20px;
}

/* WordPress Admin Compatibility */
.wp-admin .lsp-admin-container {
    margin-left: 0;
    margin-right: 0;
}

.wp-admin .lsp-admin-container input[type="text"],
.wp-admin .lsp-admin-container input[type="password"],
.wp-admin .lsp-admin-container input[type="email"],
.wp-admin .lsp-admin-container input[type="url"],
.wp-admin .lsp-admin-container input[type="number"],
.wp-admin .lsp-admin-container select,
.wp-admin .lsp-admin-container textarea {
    box-sizing: border-box;
}

/* Data Summary Styles (from main plugin file) */
.lsp-data-summary {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #0073aa;
    margin-top: 10px;
}

.lsp-data-summary h4 {
    margin-top: 0;
    color: #0073aa;
}

.lsp-data-summary ul,
.lsp-data-list {
    margin-bottom: 15px;
    margin-left: 20px;
}

.lsp-settings-container table.form-table {
    width: 100%;
}

.lsp-uninstall-settings .form-table th {
    width: 200px;
}

.lsp-settings-container .form-table th {
    text-align: left;
}

.lsp-settings-container .form-table td input[type="password"] {
    width: calc(100% - 65px);
}

.lsp-settings-container .form-table fieldset {
    border: none;
}

.lsp-settings-container .form-table textarea {
    width: 100%;
    max-width: 100% !important;
    min-width: 100%;
    min-height: 100px;
    font-family: Monaco, 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
}

.lsp-settings-container .form-table input[type="text"] {
    width: 100%;
    max-width: 100%;
}

.lsp-settings-container .lsp-credentials-fields {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
}

.lsp-settings-container .lsp-field-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 49%;
}

.lsp-settings-container .lsp-credentials-fields .lsp-field-row:last-child {
    width: 100%;
}

.lsp-settings-container input#suitecrm_url {
    width: 100%;
}

.lsp-settings-container div#suitecrm select {
    width: 100%;
}

.lsp-settings-container input#zendesk_username {
    width: 100%;
}

.lsp-settings-container div#scraping input[type="number"] {
    width: 100px;
}

.lsp-settings-container input#notification_email {
    width: 100%;
}

.lsp-settings-container input#slack_webhook_url {
    width: 100%;
}

.lsp-settings-container div#advanced input, .lsp-settings-container div#advanced select {
    width: 100px;
}

/* Utility classes for inline replacements */
.lsp-italic {
    font-style: italic;
}

/* Log-specific styles moved from view files */
.lsp-log-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.lsp-log-table th,
.lsp-log-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.lsp-log-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #23282d;
}

.lsp-log-table tr:hover {
    background: #f9f9f9;
}

.lsp-log-table tr:last-child td {
    border-bottom: none;
}

.lsp-log-level {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.lsp-log-level.error { background: #dc3232; color: white; }
.lsp-log-level.warning { background: #ffb900; color: white; }
.lsp-log-level.info { background: #0073aa; color: white; }
.lsp-log-level.debug { background: #666; color: white; }

.lsp-log-timestamp {
    font-family: monospace;
    font-size: 12px;
    color: #666;
}

.lsp-log-component {
    font-weight: 600;
    color: #23282d;
}

.lsp-log-message {
    max-width: 400px;
    word-wrap: break-word;
}

.lsp-log-context {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    margin: 10px 0 0 0;
}

.lsp-log-context pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.lsp-toggle-context {
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
}

.lsp-log-actions {
    white-space: nowrap;
}

.lsp-no-logs {
    text-align: center;
    padding: 40px;
    color: #666;
}

.lsp-clear-logs {
    float: right;
    margin-bottom: 20px;
}

.lsp-no-context {
    color: #999;
}

.lsp-log-filters label {
    margin-right: 15px;
    font-weight: 600;
}

.lsp-log-filters select,
.lsp-log-filters input {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Responsive log table */
@media (max-width: 768px) {
    .lsp-log-table,
    .lsp-log-table thead,
    .lsp-log-table tbody,
    .lsp-log-table th,
    .lsp-log-table td,
    .lsp-log-table tr {
        display: block;
    }
    
    .lsp-log-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .lsp-log-table tr {
        border: 1px solid #ddd;
        margin-bottom: 10px;
        border-radius: 4px;
        padding: 10px;
    }
    
    .lsp-log-table td {
        border: none;
        position: relative;
        padding-left: 25%;
        padding-bottom: 10px;
    }
    
    .lsp-log-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 20%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #23282d;
    }
    
    .lsp-log-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .lsp-log-filters label,
    .lsp-log-filters select,
    .lsp-log-filters input {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* restored from analytics.php */

.lsp-analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lsp-summary-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.lsp-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.lsp-summary-card h3 {
    font-size: 2em;
    margin: 0 0 5px 0;
    color: #0073aa;
    font-weight: bold;
}

.lsp-summary-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.lsp-card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #ddd;
}

.lsp-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lsp-chart-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lsp-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.lsp-chart-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.lsp-chart-controls {
    display: flex;
    gap: 10px;
}

.lsp-chart-wrapper {
    position: relative;
    height: 300px;
}

.lsp-chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.lsp-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lsp-analytics-insights {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.lsp-insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.lsp-insight-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.lsp-insight-card .dashicons {
    color: #0073aa;
    font-size: 20px;
    margin-top: 2px;
}

.lsp-insight-card h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 14px;
}

.lsp-insight-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .lsp-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .lsp-analytics-summary {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* restored from logs.php */



.lsp-log-filters {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

.lsp-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.lsp-search-input {
    min-width: 200px;
}

.lsp-log-actions {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lsp-logs-table .lsp-log-time { width: 140px; }
.lsp-logs-table .lsp-log-level { width: 80px; }
.lsp-logs-table .lsp-log-component { width: 120px; }
.lsp-logs-table .lsp-log-context { width: 120px; }

.lsp-log-row.lsp-log-error { background-color: #fef7f7; }
.lsp-log-row.lsp-log-warning { background-color: #fffbf0; }
.lsp-log-row.lsp-log-info { background-color: #f0f8ff; }
.lsp-log-row.lsp-log-debug { background-color: #f8f8f8; }

.lsp-level-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.lsp-level-error { background: #dc3232; }
.lsp-level-warning { background: #ffb900; }
.lsp-level-info { background: #0073aa; }
.lsp-level-debug { background: #666; }

.lsp-component-tag {
    background: #e1e1e1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-family: monospace;
}

.lsp-log-timestamp {
    font-weight: bold;
    font-size: 13px;
}

.lsp-log-date {
    font-size: 11px;
    color: #666;
}

.lsp-session-ref {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.lsp-session-ref code {
    background: #f1f1f1;
    padding: 1px 4px;
    border-radius: 2px;
}

.lsp-context-data pre {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 4px;
    font-size: 11px;
    max-height: 200px;
    overflow-y: auto;
    margin: 10px 0 0 0;
}

.lsp-no-context {
    color: #999;
}

/* restored from auto-scraper.php */
.lsp-auto-scraper-container {
    max-width: 100%;
}

.lsp-auto-scraper-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.lsp-auto-scraper-header h2 {
    margin: 0 0 10px 0;
    color: #23282d;
}

.lsp-auto-scraper-header p {
    margin: 0;
    color: #646970;
}

.lsp-no-auto-scrapes {
    text-align: center;
    padding: 20px;
}

.lsp-empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.lsp-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.lsp-empty-state h3 {
    margin: 0 0 15px 0;
    color: #23282d;
}

.lsp-empty-state p {
    margin-bottom: 20px;
    color: #646970;
    line-height: 1.5;
}

.lsp-empty-state ol {
    text-align: center;
    margin: 0px auto 20px;
    color: #646970;
    display: inline-flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
}

/* Auto-scrapes list styling moved to unified container rules */

.lsp-auto-scrape-name {
    min-width: 150px;
}

.lsp-auto-scrape-meta {
    margin-top: 5px;
    color: #646970;
}

.lsp-location {
    min-width: 120px;
}

.lsp-categories {
    max-width: 200px;
}

.lsp-category-tag {
    display: inline-block;
    background: #f0f0f1;
    color: #2c3338;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin: 1px;
    white-space: nowrap;
}

.lsp-category-more {
    display: inline-block;
    color: #646970;
    font-size: 11px;
    font-style: italic;
    margin-left: 5px;
}

.lsp-interval {
    font-weight: 500;
    color: #2c3338;
}

.lsp-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.lsp-status-active {
    background: #00a32a;
    color: white;
}

.lsp-status-paused {
    background: #ffb900;
    color: white;
}

.lsp-status-error {
    background: #dc3232;
    color: white;
}

.lsp-timestamp {
    font-size: 13px;
}

.lsp-timestamp small {
    color: #646970;
}

.lsp-no-data {
    color: #a7aaad;
    font-style: italic;
}

.lsp-stats {
    font-size: 12px;
    line-height: 1.4;
}

.lsp-actions {
    white-space: nowrap;
}

.lsp-actions .button {
    margin: 1px;
}



.lsp-form-group {
    margin-bottom: 15px;
}

.lsp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #23282d;
}

.lsp-form-group input,
.lsp-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .wp-list-table th,
    .wp-list-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .lsp-actions .button {
        font-size: 11px;
        padding: 4px 8px;
    }
    

}

/* restored from leads.php */

.lsp-results-filters {
    background: #f9f9f9;
    padding: 15px;
    margin: 0px 0px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lsp-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.lsp-search-input {
    flex: 1;
    min-width: 200px;
}

.lsp-bulk-actions {
    margin: 15px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lsp-bulk-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.lsp-export-actions {
    margin-left: auto;
}

.lsp-action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.lsp-action-buttons .button {
    padding: 4px 8px;
    font-size: 11px;
}

.lsp-notes-badge {
    background: #2271b1;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.lsp-no-notes {
    color: #666;
    font-style: italic;
    font-size: 11px;
}



.lsp-form-group {
    margin-bottom: 15px;
}

.lsp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.lsp-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lsp-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.lsp-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.lsp-no-results-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.lsp-no-results h3 {
    margin-bottom: 10px;
}

.lsp-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lsp-pagination-info {
    color: #666;
    font-size: 13px;
}

/* Lead Details Styles */
.lsp-lead-details {
    line-height: 1.6;
}

.lsp-lead-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 0px;
}

.lsp-lead-basic-info h3 {
    margin: 0 0 10px 0;
    color: #2271b1;
}

.lsp-business-type {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.lsp-contact-info, .lsp-location-info, .lsp-rating-info, .lsp-status-info {
    margin-bottom: 20px;
}

.lsp-contact-info a {
    color: #2271b1;
    text-decoration: none;
}

.lsp-contact-info a:hover {
    text-decoration: underline;
}

.lsp-sync-status {
    margin-bottom: 20px;
}

.lsp-sync-status p {
    margin: 5px 0;
    font-size: 14px;
}

.lsp-recent-notes .lsp-note-item {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #2271b1;
}

.lsp-note-text {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.lsp-note-meta {
    font-size: 12px;
    color: #666;
}

/* Edit Form Styles */
.lsp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.lsp-form-group {
    margin-bottom: 15px;
}

.lsp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.lsp-form-group input,
.lsp-form-group select,
.lsp-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.lsp-form-group input:focus,
.lsp-form-group select:focus,
.lsp-form-group textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.lsp-form-actions {
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Notes Management */
.lsp-notes-list h4 {
    margin-bottom: 15px;
    color: #333;
}

.lsp-notes-list .lsp-note-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.lsp-notes-list .lsp-note-text {
    margin-bottom: 10px;
    line-height: 1.5;
}

.lsp-notes-list .lsp-note-meta {
    color: #666;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lsp-lead-info-grid,
    .lsp-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lsp-filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .lsp-search-input {
        min-width: auto;
    }
    
    .lsp-bulk-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lsp-export-actions {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .lsp-action-buttons {
        flex-direction: column;
    }
    
    .lsp-action-buttons .button {
        margin-bottom: 5px;
    }
}

/* restored from results.php */



.lsp-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.lsp-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lead Details Styles */
.lsp-lead-details {
    line-height: 1.6;
}

.lsp-lead-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 0px;
}

.lsp-lead-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.lsp-lead-section h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
    font-size: 16px;
}

.lsp-contact-info a {
    color: #0073aa;
    text-decoration: none;
}

.lsp-contact-info a:hover {
    text-decoration: underline;
}

.lsp-rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.lsp-stars {
    color: #ffa500;
    font-size: 18px;
}

.lsp-ai-insights {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.lsp-ai-insights h3 {
    margin: 0;
    color: white;
    border-bottom: 0;
    padding-bottom: 10px;
    width: auto;
}

.lsp-ai-insights .lsp-insights-content {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid #fff;
    white-space: pre-line;
}

.lsp-insights-meta {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 10px;
}

.lsp-enriched-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 0px;
}

.lsp-enriched-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
}

.lsp-enriched-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.lsp-social-links a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
    color: #0073aa;
    text-decoration: none;
}

.lsp-social-links a:hover {
    text-decoration: underline;
}

/* restored from reusable-results-display.php */

/* Additional styles for the reusable component */
.lsp-results-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin: 20px 0;
}

/* .lsp-results-header styles now unified above */

.lsp-results-actions {
    display: flex;
    gap: 10px;
}

.lsp-results-summary {
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #ccd0d4;
}

.lsp-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.lsp-stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.lsp-stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.lsp-stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #2271b1;
}

.lsp-results-table-container {
    padding: 0px;
}

/* Duplicate removed - using unified table rules */

.lsp-results-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #1d2327;
}

.lsp-results-table tr:hover {
    background: #f6f7f7;
}

.lsp-action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.lsp-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.lsp-btn-secondary {
    background: #6c757d;
    color: white;
}

.lsp-btn-secondary:hover {
    background: #5a6268;
}

.lsp-btn-success {
    background: #28a745;
    color: white;
}

.lsp-btn-success:hover {
    background: #218838;
}

.lsp-btn-primary {
    background: #2271b1;
    color: white;
}

.lsp-btn-primary:hover {
    background: #135e96;
}

.lsp-tasked-indicator {
    color: #28a745;
    font-size: 11px;
    font-weight: bold;
}

.lsp-status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.lsp-status-new {
    background: #2c3e50;
    color: #1565c0;
}

.lsp-status-tasked {
    background: #fff3e0;
    color: #ef6c00;
}

.lsp-status-contacted {
    background: #f3e5f5;
    color: #7b1fa2;
}

.lsp-status-qualified {
    background: #e8f5e8;
    color: #2e7d32;
}

.lsp-status-converted {
    background: #e1f5fe;
    color: #0277bd;
}

.lsp-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.lsp-no-results-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .lsp-modal-header,
    .lsp-modal-content .lsp-modal-header,
    .lsp-results-header,
    .lsp-modal-content .lsp-results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .lsp-results-actions {
        justify-content: center;
    }
    
    .lsp-summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lsp-results-table-container {
        overflow-x: auto;
    }
    
    .lsp-action-buttons {
        flex-direction: column;
    }
}

/* restored from scraper.php */

/* Sessions Tab Styles */
.lsp-sessions-summary {
    margin: 0px 0px 20px;
}

.lsp-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lsp-summary-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}





/* Unified styling for summary elements */
.lsp-stat-content p, .lsp-summary-label, .lsp-summary-card p, .lsp-log-stats p {
    font-size: 14px;
    color: #666;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin: 0;
}

.lsp-summary-number, .lsp-summary-card h3, .lsp-log-stats h3 {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    line-height: 1;
    margin-bottom: 5px;
    margin-top: 0px;
}

/* Unified table container styling */
.lsp-sessions-table-container,
.lsp-results-table-container:not(.lsp-modal-content .lsp-results-table-container),
.lsp-logs-table-container,
.lsp-auto-scrapes-list {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.lsp-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lsp-category-tag {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #333;
}

.lsp-category-more {
    background: #2271b1;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.lsp-no-categories {
    color: #666;
    font-style: italic;
    font-size: 12px;
}

.lsp-results-summary-mini {
    font-size: 13px;
    line-height: 1.4;
}

.lsp-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.lsp-btn-primary {
    background: #2271b1;
    color: white;
}

.lsp-btn-primary:hover {
    background: #135e96;
}

.lsp-btn-secondary {
    background: #6c757d;
    color: white;
}

.lsp-btn-secondary:hover {
    background: #5a6268;
}

.lsp-btn-success {
    background: #28a745;
    color: white;
}

.lsp-btn-success:hover {
    background: #218838;
}

.lsp-btn-warning {
    background: #ffc107;
    color: #212529;
}

.lsp-btn-warning:hover {
    background: #e0a800;
}

.lsp-no-actions {
    color: #666;
    font-style: italic;
    font-size: 11px;
}

.lsp-no-sessions {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.lsp-no-sessions-icon {
    font-size: 64px;
    margin-bottom: 20px;
}



.lsp-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.lsp-pagination {
    margin-top: 20px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    background: #f6f7f7;
}

.lsp-pagination-info {
    color: #666;
    font-size: 13px;
}

/* Responsive design */
@media (max-width: 768px) {
    .lsp-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lsp-session-action-buttons {
        flex-direction: column;
    }
    

}

/* NEW */
.toplevel_page_lead-scraper-pro #wpfooter {
    display: none !important;
}

/* Google Sheets Credentials Fields Styling */
.lsp-credentials-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lsp-field-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lsp-field-row label {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 0;
}

.lsp-field-row input[type="text"],
.lsp-field-row input[type="email"],
.lsp-field-row input[type="url"],
.lsp-field-row textarea {
    width: 100%;
    max-width: 500px;
}

.lsp-field-row textarea {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
}

.lsp-field-row .description {
    margin-top: 5px;
    margin-bottom: 0;
    font-style: italic;
    color: #666;
}

input[type=checkbox], input[type=radio] {
    width: 1rem !important;
}

/* Admin Container */
.lsp-admin-container {
    display: flex;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

/* Navigation Tabs */
.lsp-admin-nav {
    width: 200px;
    background: #f9f9f9;
    border-right: 1px solid #e1e1e1;
}

.lsp-nav-tabs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lsp-nav-tab {
    display: block;
    margin: 0;
    border-bottom: 1px solid #e1e1e1;
}

.lsp-nav-tab a,
.lsp-nav-tab {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: auto;
    text-align: left;
    font-size: 14px;
}

.lsp-nav-tab:hover {
    background: #f0f0f1;
    color: #0073aa;
}

.lsp-nav-tab.active {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

.lsp-nav-tab.active:hover {
    background: #005a87;
}

/* Content Area */
.lsp-admin-content {
    flex: 1;
    padding: 0;
}

.lsp-tab-content {
    display: none;
    padding: 20px;
}

.lsp-tab-content.active {
    display: block;
}

.lsp-tab-content h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
    color: #23282d;
}

/* Form Styling */
.form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    vertical-align: top;
}

.form-table td {
    padding: 15px 10px;
    vertical-align: top;
}

.form-table input[type="text"],
.form-table input[type="password"],
.form-table input[type="email"],
.form-table input[type="url"],
.form-table input[type="number"],
.form-table select,
.form-table textarea {
    font-size: 14px;
}

.form-table textarea {
    width: 100%;
    font-family: Monaco, 'Courier New', monospace;
    font-size: 12px;
}

/* Required Field Indicator */
.lsp-required {
    color: #d63638;
    font-weight: bold;
    margin-left: 3px;
}

/* Password Toggle */
.lsp-password-field {
    margin-right: 10px;
}

.lsp-toggle-password {
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid #ccd0d4;
    background: #f6f7f7;
    color: #555;
    cursor: pointer;
    border-radius: 3px;
    text-decoration: none;
}

.lsp-toggle-password:hover {
    background: #f0f0f1;
    border-color: #999;
}

/* Buttons */
.lsp-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px 5px 0;
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.lsp-btn:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

.lsp-btn-secondary {
    background: #f6f7f7;
    color: #555;
    border-color: #ccd0d4;
}

.lsp-btn-secondary:hover {
    background: #f0f0f1;
    border-color: #999;
    color: #333;
}

.lsp-btn-success {
    background: #007cba;
    border-color: #007cba;
}

.lsp-btn-success:hover {
    background: #005a87;
    border-color: #005a87;
}

.lsp-btn-danger {
    background: #d63638;
    border-color: #d63638;
}

.lsp-btn-danger:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

/* Test Buttons */
.lsp-test-api {
    margin-top: 10px;
}

.lsp-test-result {
    margin-top: 10px;
    padding: 10px;
    border-left: 4px solid #0073aa;
    background: #f7f7f7;
    display: none;
}

.lsp-test-result.success {
    border-color: #46b450;
    background: #ecf7ed;
}

.lsp-test-result.error {
    border-color: #d63638;
    background: #fcf2f2;
}

/* Status Indicators */
.lsp-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.lsp-status-indicator.active {
    background: #46b450;
}

.lsp-status-indicator.inactive {
    background: #d63638;
}

.lsp-status-indicator.warning {
    background: #ffb900;
}

/* Notices */
.lsp-notice {
    margin: 15px 0;
    padding: 10px 15px;
    border-left: 4px solid #0073aa;
    background: #f7f7f7;
}

.lsp-notice.error {
    border-color: #d63638;
    background: #fcf2f2;
}

.lsp-notice.success {
    border-color: #46b450;
    background: #ecf7ed;
}

.lsp-notice.warning {
    border-color: #ffb900;
    background: #fff8e5;
}

/* Loading States */
.lsp-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

@keyframes lsp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Spinner */
.lsp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: lsp-spin 1s linear infinite;
}

/* Tooltips */
.lsp-tooltip {
    position: relative;
    cursor: help;
}

.lsp-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 1000;
}

.lsp-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Form Sections */
.lsp-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.lsp-form-section:last-child {
    border-bottom: none;
}

.lsp-form-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

/* Code Fields */
.lsp-code-field {
    font-family: Monaco, 'Courier New', monospace;
    font-size: 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    white-space: pre;
    overflow-x: auto;
}

/* Integration Status */
.lsp-integration-status {
    display: flex;
    flex-direction: column;
}

.lsp-integration-status-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 10px;
}

.lsp-integration-status-indicator.active {
    background: #ecf7ed;
    color: #46b450;
}

.lsp-integration-status-indicator.inactive {
    background: #fcf2f2;
    color: #d63638;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lsp-admin-container {
        flex-direction: column;
    }
    
    .lsp-admin-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e1e1e1;
    }
    
    .lsp-nav-tabs {
        display: flex;
        overflow-x: auto;
    }
    
    .lsp-nav-tab {
        border-bottom: none;
        border-right: 1px solid #e1e1e1;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .lsp-nav-tab:last-child {
        border-right: none;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .form-table th {
        border-bottom: none;
    }
}

/* WordPress Admin Compatibility */
.wp-admin .lsp-admin-container {
    margin-left: 0;
    margin-right: 0;
}

.wp-admin .lsp-admin-container input[type="text"],
.wp-admin .lsp-admin-container input[type="password"],
.wp-admin .lsp-admin-container input[type="email"],
.wp-admin .lsp-admin-container input[type="url"],
.wp-admin .lsp-admin-container input[type="number"],
.wp-admin .lsp-admin-container select,
.wp-admin .lsp-admin-container textarea {
    box-sizing: border-box;
}

/* Save Button */
.lsp-save-settings {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
}

.lsp-save-settings:hover {
    background: #005a87;
    border-color: #005a87;
}

/* API Key Sections */
.lsp-api-section {
    background: #fafafa;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.lsp-api-section h4 {
    margin-top: 0;
    color: #0073aa;
}

/* Success/Error Messages */
.lsp-message {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: 500;
}

.lsp-message.success {
    background: #ecf7ed;
    border: 1px solid #46b450;
    color: #155724;
}

.lsp-message.error {
    background: #fcf2f2;
    border: 1px solid #d63638;
    color: #721c24;
}

.lsp-message.warning {
    background: #fff8e5;
    border: 1px solid #ffb900;
    color: #856404;
}

.lsp-message.info {
    background: #e7f3ff;
    border: 1px solid #0073aa;
    color: #004085;
} 

p.submit {
    text-align: left;
    max-width: 100%;
    margin: 0px;
    padding: 20px;
}

.lsp-stats-grid {
    display: inline-flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
}

.lsp-stat-icon {
    text-align: center;
}

.lsp-stat-icon img.emoji {
    height: 30px !important;
    width: 30px !important;
    margin: 0px !important;
}

.lsp-stat-content {
    text-align: center!important;
}

.lsp-stat-content p {
    margin-bottom: 0px;
}

.lsp-status-grid {
    display: inline-flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
}

.lsp-status-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.lsp-action-buttons a {
    text-decoration: none;
}

.lsp-action-buttons {
    display: inline-flex;
    flex-direction: row;
    gap: 10px;
}

/* =================================================================
   ENHANCED DASHBOARD LAYOUT STYLES
   ================================================================= */

/* Admin Header */
.lsp-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding-top: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.lsp-admin-header h1 {
    margin: 0;
    padding: 0px;
    color: #1d2327;
}

.lsp-header-actions {
    display: flex;
    gap: 10px;
}

.lsp-header-actions .button {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Dashboard Tabs */
.lsp-dashboard-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 0px 0px 10px 10px;
    justify-content: center;
}

.lsp-tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #646970;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

.lsp-tab-btn:hover {
    background: #ffffff;
    color: #135e96;
    text-decoration: none;
}

.lsp-tab-btn.active {
    background: #ffffff;
    color: #135e96;
    border-bottom-color: #2271b1;
    text-decoration: none;
}

.lsp-tab-btn .dashicons {
    font-size: 16px;
    align-content: center!important;
}

/* Tab Content */
.lsp-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.lsp-tab-content.active {
    display: block !important;
}

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

/* Welcome Banner for New Users */
.lsp-welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lsp-welcome-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: white;
}

.lsp-welcome-content p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 16px;
}

.lsp-welcome-stats {
    text-align: right;
}

.lsp-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lsp-feature {
    padding: 5px 0;
    opacity: 0.9;
}

.button-hero {
    padding: 12px 24px !important;
    font-size: 16px !important;
    height: auto !important;
}

/* Enhanced Stats Grid */
.lsp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lsp-log-stats .lsp-stat-card {
    width: 100%;
}

.lsp-log-stats {
    display: flex;
    gap: 20px;
    margin: 0px 0 20px;
}

.lsp-stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.lsp-stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 600;
    color: #1d2327;
}

.lsp-stat-content p {
    margin: 0;
    color: #646970;
    font-size: 14px;
}

/* Enhanced Quick Actions */

.lsp-action-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.lsp-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #2271b1;
    text-decoration: none;
    color: inherit;
}

.lsp-action-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.lsp-action-content {
    flex: 1;
}

.lsp-action-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #1d2327;
}

.lsp-action-content p {
    margin: 0;
    color: #646970;
    font-size: 14px;
}

.lsp-action-arrow {
    font-size: 20px;
    color: #646970;
    transition: transform 0.2s ease;
}

.lsp-action-card:hover .lsp-action-arrow {
    transform: translateX(5px);
    color: #2271b1;
}

.lsp-status-item {
    width: 100%;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.lsp-status-item.status-ok {
    border-color: #00a32a;
    background: #f6fff7;
}

.lsp-status-item.status-error {
    border-color: #d63638;
    background: #fff6f6;
}

.lsp-status-icon {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
}

.lsp-status-text {
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
}

/* Recent Activity */
.lsp-recent-activity {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Activity summary spacing handled by individual .lsp-activity-item styles */

.lsp-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
}

.lsp-activity-item:last-child {
    border-bottom: none;
}

.lsp-activity-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.lsp-activity-text {
    flex: 1;
    font-size: 14px;
    color: #1d2327;
}

.lsp-activity-time {
    font-size: 12px;
    color: #646970;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lsp-admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .lsp-dashboard-tabs {
        flex-wrap: wrap;
    }
    
    .lsp-tab-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .lsp-welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .lsp-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .lsp-action-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lsp-status-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
}

/* =================================================================
   INTEGRATED CONTENT STYLES
   ================================================================= */

/* Remove extra margins/padding from integrated content */
.lsp-tab-content .wrap {
    margin: 0;
    padding: 0;
}

.lsp-tab-content h1 {
    display: none; /* Hide page titles within tabs */
}

.lsp-settings-container {
    margin: 0;
    padding: 0;
}

.lsp-settings-container .lsp-admin-container {
    margin: 0px;
}

/* Results and Logs content styling */
#lsp-tab-results .wrap,
#lsp-tab-logs .wrap {
    margin: 0;
    padding: 0;
}

#lsp-tab-results h1,
#lsp-tab-logs h1 {
    margin-bottom: 20px;
    color: #1d2327;
}

/* Tab link styling */
.lsp-tab-link {
    cursor: pointer;
    transition: all 0.2s ease;
}

.lsp-tab-link:hover {
    transform: translateY(-1px);
}

/* Status badges for integrated content */
.lsp-status-badge, .lsp-level-badge, .lsp-lead-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.lsp-status-completed, .lsp-status-ok { background: #00a32a; color: white; }
.lsp-status-running, .lsp-status-warning { background: #ffb900; color: white; }
.lsp-status-error, .lsp-status-failed { background: #dc3232; color: white; }
.lsp-status-new, .lsp-status-pending { background: #72aee6; color: white; }

/* Responsive tabs for mobile */
@media (max-width: 768px) {
    .lsp-dashboard-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .lsp-tab-btn {
        flex-shrink: 0;
        min-width: 120px;
    }
}

div#lsp-tab-overview {
    background: ghostwhite;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

div#lsp-tab-scraper, div#lsp-tab-sessions, div#lsp-tab-leads, div#lsp-tab-auto-scraper, div#lsp-tab-results, div#lsp-tab-analytics, div#lsp-tab-settings, div#lsp-tab-logs {
    background: ghostwhite;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.button-hero .dashicons.dashicons-search {
    margin-right: 10px;
}

button#lsp-start-first-session {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}

/* Data Extraction Settings Styles */
.lsp-extraction-summary {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
}

.lsp-extraction-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

.lsp-impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.lsp-impact-item {
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.lsp-impact-item strong {
    color: #007cba;
    font-weight: 600;
}

/* Checkbox grouping in fieldsets */
fieldset label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
}

fieldset label input[type="checkbox"] {
    margin-right: 8px;
}

fieldset .description {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

/* Data extraction tab spacing */
#data-extraction .form-table th {
    width: 200px;
    font-weight: 600;
    color: #23282d;
}

#data-extraction .form-table td {
    padding: 20px 10px;
}

#data-extraction fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

#data-extraction legend {
    display: none;
}

/* Visual indicators for required fields */
#data-extraction strong {
    color: #d63384;
    font-size: 12px;
}

/* AI Analysis Preview Styling */
.lsp-ai-analysis-preview {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.lsp-ai-analysis-preview h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
}

.lsp-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.lsp-preview-input,
.lsp-preview-output {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.lsp-preview-input h4,
.lsp-preview-output h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #23282d;
    font-size: 14px;
    font-weight: 600;
}

.lsp-sample-data {
    line-height: 1.6;
    color: #555;
    font-size: 13px;
}

.lsp-sample-data strong {
    color: #23282d;
    font-weight: 600;
}

.lsp-ai-analysis-result {
    line-height: 1.6;
    color: #555;
    font-size: 13px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.lsp-preview-output em {
    color: #666;
    font-style: italic;
}

.lsp-preview-output .error {
    margin: 0;
}

#lsp-ai-preview-loading {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

#lsp-ai-preview-loading .spinner {
    float: none;
    margin-right: 8px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .lsp-preview-container {
        grid-template-columns: 1fr;
    }
}

/* New styles */
.lsp-dashboard-container {
    margin: 0 auto;
    padding: 0px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lsp-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.lsp-dashboard-header h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.lsp-dashboard-header p {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin: 0;
}

/* Form Styles */
.lsp-scraping-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 0px;
}

.lsp-form-group {
    margin-bottom: 25px;
}

.lsp-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.lsp-required {
    color: #e74c3c;
    margin-left: 3px;
}

.lsp-input-container {
    position: relative;
}

.lsp-city-input, .lsp-radius-select, .lsp-categories-select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e1e8ed;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: border-color 0.3s ease;
}

select#lsp-categories-select {
    height: 250px;
}

.lsp-city-input:focus, .lsp-radius-select:focus, .lsp-categories-select:focus {
    outline: none;
    border-color: #3498db;
}

.lsp-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.lsp-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.lsp-suggestion-item:hover {
    background: #f8f9fa;
}

.lsp-suggestion-item:last-child {
    border-bottom: none;
}

.lsp-field-help {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

/* Popular Categories */
.lsp-popular-categories {
    margin-bottom: 20px;
}

.lsp-popular-categories h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.lsp-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lsp-category-chip {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lsp-category-chip:hover {
    background: #3498db;
    color: #fff;
}

.lsp-category-chip.selected {
    background: #3498db;
    color: #fff;
    border-color: #2980b9;
}

/* Focus Options */
.lsp-focus-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lsp-focus-btn {
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    color: #2c3e50;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lsp-focus-btn:hover {
    background: #3498db;
    color: #fff;
    border-color: #2980b9;
}

.lsp-focus-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #2980b9;
}

/* Advanced Options */
.lsp-advanced-options {
    margin-top: 20px;
}

.lsp-toggle-advanced {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lsp-toggle-icon {
    transition: transform 0.3s ease;
}

.lsp-toggle-advanced.active .lsp-toggle-icon {
    transform: rotate(180deg);
}

.lsp-advanced-content {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.lsp-advanced-content.show {
    display: block;
}

.lsp-number-input {
    width: 120px;
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
}

/* Buttons */
.lsp-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

button#lsp-start-scraping {
    width: 100%!important;
}

span.lsp-btn-loader {
    justify-content: center;
}

.lsp-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.lsp-btn-primary {
    background: #3498db;
}

.lsp-btn-secondary {
    background: #95a5a6;
}

.lsp-btn-success {
    background: #27ae60;
}

.lsp-form-actions {
    text-align: center;
    margin-top: 30px;
}

.lsp-btn-loader {
    display: none;
    align-items: center;
    gap: 8px;
}

.lsp-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff40;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Section */
.lsp-progress-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    margin-top: 30px;
}

.lsp-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lsp-progress-stats {
    display: flex;
    gap: 20px;
}

.lsp-stat {
    color: #7f8c8d;
    font-size: 14px;
}

.lsp-stat strong {
    color: #2c3e50;
}

.lsp-progress-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.lsp-progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    width: 0%;
    transition: width 0.3s ease;
}

.lsp-progress-log {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
}

.lsp-progress-log .log-entry {
    margin-bottom: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #e1e8ed;
}

.lsp-progress-log .log-entry:last-child {
    border-bottom: none;
}

.lsp-progress-log .log-timestamp {
    color: #7f8c8d;
    font-size: 12px;
}

.lsp-progress-log .log-message {
    color: #2c3e50;
    margin-left: 10px;
}

/* Results Section */
.lsp-results-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* .lsp-results-header styles now unified above */

.lsp-results-actions {
    display: flex;
    gap: 10px;
}

.lsp-results-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.lsp-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lsp-stat-item {
    text-align: center;
}

.lsp-stat-label {
    display: block;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.lsp-stat-value {
    display: block;
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

.lsp-results-table-container {
    overflow-x: auto;
}

/* Duplicate removed - using unified table rules */

.lsp-results-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.lsp-results-table tr:hover {
    background: #f8f9fa;
}

.lsp-rating {
    color: #f39c12;
    font-weight: bold;
}

.lsp-action-buttons {
    display: flex;
    gap: 5px;
}

.lsp-no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lsp-dashboard-container {
        padding: 15px;
    }
    
    .lsp-dashboard-header h2 {
        font-size: 2rem;
    }
    
    .lsp-scraping-form {
        padding: 20px;
    }
    
    .lsp-category-chips {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lsp-category-chip {
        text-align: center;
    }
    
    .lsp-focus-options {
        flex-direction: column;
    }
    
    .lsp-progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .lsp-progress-stats {
        flex-wrap: wrap;
    }
    
    .lsp-modal-header,
    .lsp-modal-content .lsp-modal-header,
    .lsp-results-header,
    .lsp-modal-content .lsp-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .lsp-results-actions {
        width: 100%;
    }
    
    .lsp-btn {
        width: 100%;
        text-align: center;
    }
    
    .lsp-summary-stats {
        grid-template-columns: 1fr;
    }
    
    .lsp-results-table {
        font-size: 14px;
    }
    
    .lsp-results-table th,
    .lsp-results-table td {
        padding: 8px;
    }
    
    .lsp-action-buttons {
        flex-direction: column;
    }
}

/* Select2 Customization */
.select2-container--default .select2-selection--multiple {
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    padding: 8px;
}

.select2-container--default .select2-selection--multiple:focus {
    border-color: #3498db;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 2px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-right: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #f8f9fa;
}

/* Animation Classes */
.lsp-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.lsp-slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Status Indicators */
.lsp-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.lsp-status-new {
    background: #2c3e50;
    color: #fff;
}

.lsp-status-processing {
    background: #f39c12;
    color: #fff;
}

.lsp-status-completed {
    background: #27ae60;
    color: #fff;
}

.lsp-status-failed {
    background: #e74c3c;
    color: #fff;
}

/* Utility Classes */
.lsp-text-center {
    text-align: center;
}

.lsp-text-right {
    text-align: right;
}

.lsp-mb-0 {
    margin-bottom: 0;
}

.lsp-mb-10 {
    margin-bottom: 10px;
}

.lsp-mb-20 {
    margin-bottom: 20px;
}

.lsp-mt-0 {
    margin-top: 0;
}

.lsp-mt-10 {
    margin-top: 10px;
}

.lsp-mt-20 {
    margin-top: 20px;
}

.lsp-hidden {
    display: none;
}

.lsp-visible {
    display: block;
}

.lsp-flex {
    display: flex;
}

.lsp-flex-wrap {
    flex-wrap: wrap;
}

.lsp-gap-10 {
    gap: 10px;
}

.lsp-gap-20 {
    gap: 20px;
}

.lsp-w-full {
    width: 100%;
}

.lsp-text-sm {
    font-size: 14px;
}

.lsp-text-lg {
    font-size: 18px;
}

.lsp-font-bold {
    font-weight: bold;
}

.lsp-text-primary {
    color: #3498db;
}

.lsp-text-success {
    color: #27ae60;
}

.lsp-text-warning {
    color: #f39c12;
}

.lsp-text-danger {
    color: #e74c3c;
}

.lsp-text-muted {
    color: #7f8c8d;
}





.lsp-lead-details {
    display: grid;
    gap: 0px;
    padding: 30px;
}

.lsp-detail-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.lsp-detail-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.lsp-detail-section p {
    margin: 8px 0;
    line-height: 1.5;
}

.lsp-detail-section strong {
    color: #2c3e50;
    font-weight: 600;
}

.lsp-json-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.lsp-json-item {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #17a2b8;
}

.lsp-json-item:last-child {
    margin-bottom: 0;
}

.lsp-json-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.lsp-json-value {
    color: #6c757d;
    word-break: break-word;
}

.lsp-json-object {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.lsp-json-array {
    background: #e8f5e8;
    border-left-color: #4caf50;
}

.lsp-contact-item {
    display: inline-block;
    background: #e7f3ff;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Modal Responsive */
@media (max-width: 768px) {
    /* Modals use unified .lsp-modal-content */
    

    
    .lsp-detail-section {
        padding: 15px;
    }
}

/* Notification Styles */
.lsp-notification {
    position: fixed;
    top: 32px; /* Above WordPress admin bar */
    right: 20px;
    z-index: 100000; /* Very high z-index to appear above everything */
    padding: 15px 20px;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    max-width: 400px;
    word-wrap: break-word;
}

.lsp-notification.show {
    transform: translateX(0);
}

.lsp-notification-success {
    background: #10b981;
    color: white;
    border-left: 4px solid #059669;
}

.lsp-notification-error {
    background: #ef4444;
    color: white;
    border-left: 4px solid #dc2626;
}

.lsp-notification-info {
    background: #3b82f6;
    color: white;
    border-left: 4px solid #2563eb;
}

.lsp-notification-warning {
    background: #f59e0b;
    color: white;
    border-left: 4px solid #d97706;
}

.lsp-notification:hover {
    opacity: 0.9;
    transform: translateX(-5px);
}

/* For WordPress frontend (no admin bar) */
.no-admin-bar .lsp-notification {
    top: 20px;
}

/* Responsive notifications */
@media (max-width: 768px) {
    .lsp-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 46px; /* Mobile admin bar height */
    }
    
    .no-admin-bar .lsp-notification {
        top: 10px;
    }
}

/* Search Type Toggle Styles */
.lsp-search-type-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.lsp-radio-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.lsp-radio-option:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.lsp-radio-option input[type="radio"] {
    margin: 0 8px 8px 0;
}

.lsp-radio-option input[type="radio"]:checked + span {
    color: #007cba;
    font-weight: 600;
}

.lsp-radio-option:has(input[type="radio"]:checked) {
    border-color: #007cba;
    background: #f0f8ff;
}

.lsp-radio-option span {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 5px;
}

.lsp-radio-option small {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.3;
}

/* Search Fields Containers */
.lsp-search-fields {
    transition: all 0.3s ease;
}

.lsp-textarea-input {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.lsp-textarea-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.lsp-textarea-input::placeholder {
    color: #999;
    line-height: 1.4;
}

/* Responsive adjustments for search type toggle */
@media (max-width: 768px) {
    .lsp-search-type-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .lsp-radio-option {
        padding: 12px;
    }
}

/* =================================================================
   LEAD EDIT FORM STYLES - Edit lead modal form
   ================================================================= */

.lsp-edit-lead-form {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    background: #fff;
    padding: 30px;
    border: none;
}

.lsp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.lsp-form-group {
    display: flex;
    flex-direction: column;
}

.lsp-form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.lsp-form-group input,
.lsp-form-group select,
.lsp-form-group textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.lsp-form-group input:focus,
.lsp-form-group select:focus,
.lsp-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.lsp-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* =================================================================
   NOTES CONTAINER STYLES - Notes modal content
   ================================================================= */

.lsp-notes-container {
    padding: 20px;
}

.lsp-add-note-form {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.lsp-notes-list h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.lsp-no-notes {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.lsp-note-item {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

.lsp-note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.lsp-note-date {
    font-weight: 600;
}

.lsp-note-author {
    color: #3498db;
}

.lsp-note-content {
    color: #2c3e50;
    line-height: 1.5;
}

/* =================================================================
   NOTIFICATION STYLES - Success/error notifications
   ================================================================= */

.lsp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

@media (max-width: 768px) {
    .lsp-form-grid {
        grid-template-columns: 1fr;
    }
    
    .lsp-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* Logout button styling */
.lsp-logout-btn {
    margin-left: auto !important;
    background-color: #243171 !important;
    color: white !important;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    height: 40px;
    margin-right: 10px;
    padding-left: 15px;
    padding-right: 15px;
}

.lsp-logout-btn:hover {
    background-color: #b32d2e !important;
    color: white !important;
    text-decoration: none;
}

.lsp-logout-btn .dashicons {
    color: white !important;
}

/* Dashboard Logo */
.lsp-dashboard-logo {
    height: 40px;
    width: auto;
    margin-right: 15px;
    margin-left: 15px;
    object-fit: contain;
}

/* Add align-items to dashboard tabs for logo alignment */
.lsp-dashboard-tabs {
    align-items: center;
}

