/* Main Styles for Google Maps Scraper */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 0.25rem rgba(0, 124, 186, 0.25);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-1px);
}

/* Tab Styles */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: #007cba;
    border-bottom-color: #007cba;
    background-color: transparent;
}

.nav-tabs .nav-link:hover {
    color: #005a87;
    border-bottom-color: #005a87;
}

/* Progress Bar */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, #007cba 0%, #005a87 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Stat Boxes */
.stat-box {
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-weight: 700;
}

/* Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 124, 186, 0.05);
}

/* Badge Styles */
.badge {
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #007cba;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #005a87;
}

/* Rating Stars */
.rating-stars {
    color: #ffc107;
}

.rating-stars .empty {
    color: #e9ecef;
}

/* Website Links */
.website-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.website-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Phone Numbers */
.phone-number {
    font-family: 'Courier New', monospace;
    color: #28a745;
    font-weight: 600;
}

/* Status Indicators */
.status-active {
    color: #28a745;
}

.status-closed {
    color: #dc3545;
}

.status-temporary {
    color: #ffc107;
}

/* Export Buttons */
.export-btn {
    margin: 2px;
    font-size: 0.85rem;
}

/* Results Section */
#resultsSection {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Range Styling */
.form-range::-webkit-slider-thumb {
    background: #007cba;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.form-range::-moz-range-thumb {
    background: #007cba;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Country Select Enhancement */
#country {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Input Group Addons */
.input-group-text {
    background-color: #e9ecef;
    border: 2px solid #e9ecef;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
}