/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Section */
.header-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.header-section h1 {
    color: #667eea;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.header-section .subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Search Section */
.search-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.search-section label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.search-section label i {
    color: #667eea;
    margin-right: 5px;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

#scrapeBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#scrapeBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#scrapeBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.results-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results-section h3 {
    color: #333;
    font-weight: bold;
}

.results-section h3 i {
    color: #667eea;
    margin-right: 8px;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.loading-spinner p {
    color: #667eea;
    font-weight: 600;
    margin-top: 15px;
}

/* Table Styles */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    font-weight: 600;
    padding: 15px;
    border: none;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.2s ease;
}

/* Table Cell Styles */
.place-name {
    font-weight: 600;
    color: #333;
}

.phone-number {
    color: #28a745;
    font-weight: 500;
}

.phone-number i {
    margin-right: 5px;
}

.address {
    color: #666;
    font-size: 0.95rem;
}

.website-link {
    color: #007bff;
    text-decoration: none;
}

.website-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.maps-link {
    color: #ea4335;
    text-decoration: none;
}

.maps-link:hover {
    color: #c23321;
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
}

.alert i {
    margin-right: 8px;
}

/* Button Styles */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    color: white;
}

.btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 1.8rem;
    }
    
    .header-section .subtitle {
        font-size: 1rem;
    }
    
    .search-section {
        padding: 15px;
    }
    
    .results-section {
        padding: 15px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    #scrapeBtn {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px 0;
    }
    
    .header-section {
        padding: 20px 15px;
    }
    
    .header-section h1 {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section {
    animation: fadeIn 0.5s ease;
}

/* Scrollbar Styling */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}