/**
 * Doctor Directory Styles
 */

.ecdd-page-wrapper {
    background: #f8f9fa;
}

.ecdd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Filter Section */
.ecdd-filters-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ecdd-search-box {
    position: relative;
    margin-bottom: 24px;
}

.ecdd-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ecdd-search-input:focus {
    outline: none;
    border-color: #5b4bd6;
    box-shadow: 0 0 0 3px rgba(91, 75, 214, 0.1);
}

.ecdd-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

/* Filter Groups */
.ecdd-filter-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.ecdd-filter-group {
    position: relative;
}

/* Filter Toggle Button */
.ecdd-filter-toggle {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ecdd-filter-toggle:hover {
    border-color: #999;
    background: #f5f5f5;
}

/* Filter Dropdown */
.ecdd-filter-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    min-width: 200px;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ecdd-filter-options.active {
    display: block;
}

.ecdd-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 8px;
}

.ecdd-option input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.ecdd-option label {
    cursor: pointer;
    font-size: 13px;
    flex: 1;
}

/* Branch Tabs */
.ecdd-branch-tabs,
.ecdd-day-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ecdd-branch-tab,
.ecdd-day-tab {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ecdd-branch-tab:hover,
.ecdd-day-tab:hover {
    border-color: #999;
    background: #f5f5f5;
}

.ecdd-branch-tab.active,
.ecdd-day-tab.active {
    background: #2c2254;
    color: white;
    border-color: #2c2254;
}

/* Sort */
.ecdd-sort-group {
    margin-left: auto;
}

.ecdd-sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
}

.ecdd-sort-select:hover {
    border-color: #999;
}

.ecdd-sort-select:focus {
    outline: none;
    border-color: #5b4bd6;
}

/* Results Section */
.ecdd-results-section {
    margin-top: 32px;
}

.ecdd-results-count {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    font-weight: 500;
}

.ecdd-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Doctor Card */
.ecdd-doctor-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.ecdd-doctor-card:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ecdd-doctor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    color: #333;
    flex-shrink: 0;
}

.ecdd-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 20px;
    color: #333;
}

.ecdd-doctor-content {
    flex: 1;
    min-width: 0;
}

.ecdd-doctor-header {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.ecdd-doctor-name {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.ecdd-specialization-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #5b4bd6;
    background: #f0ebf8;
    padding: 3px 6px;
    border-radius: 3px;
    margin-right: 6px;
}

.ecdd-doctor-location {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.ecdd-doctor-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ecdd-meta-badge {
    font-size: 12px;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #333;
}

.ecdd-meta-badge.ecdd-hmo {
    background: #e8f5e9;
    color: #2e7d32;
}

.ecdd-availability-hours {
    margin-top: 12px;
}

.ecdd-availability-badges {
    display: flex;
    gap: 4px;
}

.ecdd-day-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #f0f0f0;
    color: #ccc;
}

.ecdd-day-badge.ecdd-available {
    background: #5b4bd6;
    color: white;
}

.ecdd-view-profile {
    align-self: center;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.ecdd-view-profile:hover {
    border-color: #5b4bd6;
    color: #5b4bd6;
    background: #f0ebf8;
}

.ecdd-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Single Doctor Page */
.ecdd-single-wrapper {
    background: #f8f9fa;
    padding: 40px 20px;
}

.ecdd-single-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ecdd-back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #5b4bd6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.ecdd-back-link:hover {
    color: #4a3baa;
}

.ecdd-single-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.ecdd-single-avatar {
    flex-shrink: 0;
}

.ecdd-single-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.ecdd-single-info h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
}

.ecdd-single-info .ecdd-specialization {
    margin: 0;
    font-size: 14px;
    color: #5b4bd6;
    font-weight: 500;
}

.ecdd-single-info .ecdd-branch {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

.ecdd-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ecdd-meta-item {
    font-size: 13px;
    color: #666;
}

.ecdd-meta-item.ecdd-hmo-badge {
    color: #2e7d32;
    font-weight: 500;
}

.ecdd-single-bio,
.ecdd-single-availability {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eee;
}

.ecdd-single-bio h2,
.ecdd-single-availability h2 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
}

.ecdd-single-bio p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

.ecdd-availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.ecdd-availability-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.ecdd-availability-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.ecdd-availability-item p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .ecdd-container {
        padding: 20px 16px;
    }

    .ecdd-filters-section {
        padding: 16px;
    }

    .ecdd-filter-groups {
        gap: 12px;
    }

    .ecdd-sort-group {
        margin-left: 0;
        width: 100%;
    }

    .ecdd-sort-select {
        width: 100%;
    }

    .ecdd-doctor-card {
        flex-wrap: wrap;
    }

    .ecdd-doctor-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ecdd-view-profile {
        width: 100%;
        text-align: center;
    }

    .ecdd-single-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ecdd-single-avatar img {
        width: 100px;
        height: 100px;
    }

    .ecdd-single-info h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .ecdd-filter-groups {
        flex-direction: column;
    }

    .ecdd-branch-tabs,
    .ecdd-day-tabs {
        justify-content: space-between;
    }

    .ecdd-branch-tab,
    .ecdd-day-tab {
        flex: 1;
        text-align: center;
    }

    .ecdd-availability-grid {
        grid-template-columns: 1fr 1fr;
    }
}
