.apf-simple-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

.apf-simple-filter {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.apf-name-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.apf-name-wrapper {
    flex: 1;
}

.apf-name-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.apf-name-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    min-height: 48px;
}

.apf-name-field:focus {
    outline: none;
    border-color: #3b4b73;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 75, 115, 0.1);
}

.apf-search-button {
    background-color: #3b4b73;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    white-space: nowrap;
}

.apf-search-button:hover {
    background-color: #2c3a5c;
    transform: translateY(-1px);
}

.apf-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.apf-search-button:hover .apf-arrow {
    transform: translateX(2px);
}

.apf-categories-section {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
    padding-top: 0;
}

.apf-cat-btn {
    background-color: #ffffff;
    color: #6c757d;
    border: 1px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    outline: none;
}

.apf-cat-btn:hover {
    border-color: #3b4b73;
    color: #3b4b73;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 75, 115, 0.2);
}

.apf-cat-btn.apf-active {
    background-color: #3b4b73;
    color: #ffffff;
    border-color: #3b4b73;
    box-shadow: 0 2px 8px rgba(59, 75, 115, 0.3);
}

.apf-simple-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.apf-simple-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b4b73;
    border-radius: 50%;
    animation: apf-spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes apf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.apf-simple-results {
    margin-top: 30px;
}

.apf-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.apf-doctor-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.apf-doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.apf-doctor-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.apf-doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apf-placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.apf-doctor-info {
    padding: 20px;
}

.apf-doctor-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.apf-doctor-specialities {
    margin-bottom: 16px;
}

.apf-speciality-tag {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 4px;
}

.apf-view-profile-btn {
    display: inline-block;
    background-color: #3b4b73;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.apf-view-profile-btn:hover {
    background-color: #2c3a5c;
    color: #ffffff;
    text-decoration: none;
}

.apf-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.apf-page-btn {
    background-color: #ffffff;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.apf-page-btn:hover,
.apf-page-btn.active {
    background-color: #3b4b73;
    color: #ffffff;
    border-color: #3b4b73;
}

.apf-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .apf-name-row {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .apf-simple-filter {
        padding: 20px;
    }
    
    .apf-categories-section {
        justify-content: center;
        gap: 8px;
    }
    
    .apf-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .apf-results-grid {
        grid-template-columns: 1fr;
    }
    
    .apf-doctor-card {
        margin: 0 auto;
        max-width: 320px;
    }
}
