/* Custom styling for VTEC search app */
.vtec-search-tabs .nav-link {
    font-weight: 500;
    color: #495057;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.vtec-search-tabs .nav-link:hover {
    color: #007bff;
    border-bottom-color: #007bff;
}

.vtec-search-tabs .nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: transparent;
    font-weight: 600;
}

.vtec-card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}

.vtec-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.vtec-card .card-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.map {
    height: 300px;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.btn-group-export {
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
}

.alert-warning {
    border-left: 4px solid #ffc107;
    background-color: #fff3cd;
}

.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.tab-content {
    border-top: 1px solid #dee2e6;
    background-color: #fff;
}

.coordinate-input {
    width: 120px;
    display: inline-block;
    margin-right: 10px;
}

.radio-group {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.section-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.coordinate-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}
.map {
    width: 100%;
    height: 400px;
    float: left;
}

/* Phenomena Summary Styling */
.phenomena-summary .card-header {
    background-color: #f8f9fa !important;
}

.phenomena-summary .btn-link {
    color: #495057 !important;
    text-decoration: none !important;
}

.phenomena-summary .btn-link:hover {
    color: #007bff !important;
}

.phenomena-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.phenomena-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

.phenomena-item:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.phenomena-item.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.phenomena-item.active .badge {
    background-color: #fff !important;
    color: #007bff !important;
}

.phenomena-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.summary-chevron {
    transition: transform 0.3s ease;
}

/* Table Toolbar Styling */
.table-toolbar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table-toolbar .table-info {
    flex-grow: 1;
}

.table-toolbar .table-exports {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-toolbar .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.table-toolbar .badge {
    font-size: 0.75rem;
}

/* Full Dataset Export Styling */
.full-dataset-export .alert {
    margin-bottom: 1rem;
}

.full-dataset-export .btn-group {
    flex-shrink: 0;
}

/* Tab 3 VTEC Event Selection Styling */
.form-select:disabled {
    background-color: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed;
}

.opacity-50 {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.opacity-50 label {
    color: #6c757d !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .phenomena-grid {
        grid-template-columns: 1fr;
        max-height: 250px;
    }
    
    .phenomena-badge {
        font-size: 0.8rem;
    }
    
    .phenomena-summary .card-body {
        padding: 0.75rem;
    }
    
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .table-toolbar .table-exports {
        justify-content: center;
    }
    
    .full-dataset-export .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .full-dataset-export .btn-group {
        align-self: center;
    }
}

@media (max-width: 576px) {
    .phenomena-grid {
        max-height: 200px;
    }
}
