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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(135deg, #4a6fa5 0%, #166088 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.search-section h2 {
    color: #166088;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a6fa5;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

#search-btn {
    background-color: #4a6fa5;
    color: white;
}

#search-btn:hover {
    background-color: #166088;
}

#reset-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

#reset-btn:hover {
    background-color: #e0e0e0;
}

.results-section {
    margin-bottom: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-header h2 {
    color: #166088;
    font-size: 1.5rem;
}

.results-count {
    color: #666;
    font-size: 1rem;
}

.psychiatrist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.psychiatrist-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.psychiatrist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.psychiatrist-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #166088;
    margin-bottom: 0.5rem;
}

.psychiatrist-credential {
    font-size: 1.1rem;
    color: #4a6fa5;
    font-weight: 500;
    margin-bottom: 1rem;
}

.psychiatrist-specialty {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.psychiatrist-details {
    margin-bottom: 1rem;
}

.psychiatrist-detail {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.psychiatrist-detail strong {
    color: #4a6fa5;
    min-width: 80px;
}

.psychiatrist-modality, .psychiatrist-coverage {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    background-color: #e8f0f5;
    color: #166088;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.psychiatrist-website {
    margin-top: 1rem;
}

.psychiatrist-website a {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.psychiatrist-website a:hover {
    text-decoration: underline;
    color: #166088;
}

footer {
    background-color: #166088;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: 100%;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .psychiatrist-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a6fa5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No results message */
.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}
