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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 1.1em;
}

.search-form {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
}

#queryInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}

#queryInput:focus {
    border-color: #667eea;
}

#submitBtn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 120px;
}

#submitBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#submitBtn:active:not(:disabled) {
    transform: translateY(0);
}

#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.results {
    margin-top: 30px;
}

.result-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}

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

.result-card.success {
    border-left: 4px solid #28a745;
}

.result-card.error {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.result-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.result-title.success {
    color: #28a745;
}

.result-title.error {
    color: #dc3545;
}

.query-display {
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #555;
}

.query-display strong {
    color: #333;
}

.phone-numbers {
    margin-top: 15px;
}

.phone-numbers h3 {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
}

.phone-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.phone-item {
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
}

.total-numbers {
    margin-top: 15px;
    padding: 10px 15px;
    background: white;
    border-radius: 5px;
    font-weight: 600;
    color: #667eea;
}

.error-message {
    color: #dc3545;
    padding: 10px 15px;
    background: white;
    border-radius: 5px;
    margin-top: 10px;
}

.hidden {
    display: none;
}

.export-section {
    margin: 20px 0;
    text-align: center;
}

.export-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.export-btn:active {
    transform: translateY(0);
}

.businesses-table {
    margin-top: 20px;
    overflow-x: auto;
}

.businesses-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.businesses-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.businesses-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.businesses-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
}

.businesses-table tbody tr:hover {
    background-color: #f8f9fa;
}

.businesses-table tbody tr:last-child td {
    border-bottom: none;
}

.phone-cell {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #28a745;
}

@media (max-width: 768px) {
    .businesses-table {
        font-size: 12px;
    }
    
    .businesses-table th,
    .businesses-table td {
        padding: 8px 10px;
    }
    
    .container {
        padding: 20px;
    }
}

