* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --dark-grey: #1a1a1a;
    --medium-grey: #2d2d2d;
    --light-grey: #f5f5f5;
    --white: #ffffff;
    --red: #dc3545;
    --orange: #fd7e14;
    --green: #28a745;
    --blue: #007bff;
    --purple: #6f42c1;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-grey);
    color: var(--dark-grey);
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background-color: var(--black);
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-container h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.tagline {
    color: #888;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-panel {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-grey);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--blue);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-search {
    background-color: var(--blue);
    color: var(--white);
}

.btn-search:hover {
    background-color: #0056b3;
}

.btn-primary {
    background-color: var(--white);
    color: var(--black);
    border: 2px solid var(--white);
}

.btn-primary:hover:not(:disabled) {
    background-color: transparent;
    color: var(--white);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light-grey);
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-group label {
    font-weight: 500;
    color: var(--medium-grey);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radius-select,
.business-type-select {
    padding: 0.5rem;
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
}

.stat-card.has-website .stat-value { color: var(--green); }
.stat-card.no-website .stat-value { color: var(--red); }
.stat-card.with-phone .stat-value { color: var(--blue); }
.stat-card.verified .stat-value { color: var(--purple); }

/* Results Section */
.results-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-header h2 {
    font-size: 1.3rem;
    color: var(--black);
}

.results-count {
    color: #666;
    font-size: 0.9rem;
}

.table-container {
    overflow-x: auto;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.leads-table th {
    text-align: left;
    padding: 1rem 0.75rem;
    background-color: var(--light-grey);
    font-weight: 600;
    color: var(--dark-grey);
    border-bottom: 2px solid #ddd;
}

.leads-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--light-grey);
    vertical-align: middle;
}

.leads-table tbody tr:hover {
    background-color: var(--light-grey);
}

.leads-table .no-results td {
    text-align: center;
    padding: 3rem;
    color: #999;
}

/* Row number styling */
.leads-table td:first-child {
    font-weight: 600;
    color: var(--blue);
    width: 50px;
}

.phone-number {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
}

.phone-number:hover {
    text-decoration: underline;
}

.website-link {
    color: var(--blue);
    text-decoration: none;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.website-link:hover {
    text-decoration: underline;
}

/* Source badges */
.source-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.source-google {
    background-color: #4285f4;
    color: white;
}

.source-osm {
    background-color: #7bc043;
    color: white;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--light-grey);
    border-radius: 8px;
    margin-top: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--medium-grey);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Add these styles to the existing style.css */

/* Phone number styling */
.phone-number {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.phone-number:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Row highlighting for businesses with phone numbers */
.has-phone {
    background-color: #f0f8ff;
    transition: background-color 0.3s;
}

.has-phone:hover {
    background-color: #e1f0fa !important;
}

/* Source badges */
.source-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.source-google {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
}

.source-osm {
    background: linear-gradient(135deg, #7bc043, #3b9e2e);
    color: white;
}

/* Stats cards enhancement */
.stat-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Loading indicator enhancement */
.loading-indicator {
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    border-radius: 8px;
    padding: 2rem;
}

/* Table row animation */
.leads-table tbody tr {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Phone column emphasis */
.leads-table td:nth-child(5) {
    font-weight: 500;
}

/* Responsive adjustments for phone numbers */
@media (max-width: 768px) {
    .phone-number {
        font-size: 0.8rem;
    }
    
    .source-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leads-table {
        font-size: 0.8rem;
    }
    
    .leads-table th,
    .leads-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-container h1 {
        font-size: 1.4rem;
    }
}