/* ================================================
   SPECIALIZATION DROPDOWN SPECIFIC STYLES
   ================================================ */

/* Specialization dropdown container */
.specialization-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

/* Specialization dropdown items */
.specialization-dropdown .dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

.specialization-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.specialization-dropdown .dropdown-item:hover {
    background-color: #f8fafc;
    color: #1f2937;
}

.specialization-dropdown .dropdown-item.highlighted {
    background-color: #3b82f6;
    color: white;
}

/* Specialization input field styling */
.specialization-input-container {
    position: relative;
}

.specialization-input-container input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    color: #374151;
    background-color: white;
    transition: all 0.3s ease;
    outline: none;
}

.specialization-input-container input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.specialization-input-container input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Loading state for specialization dropdown */
.specialization-dropdown .loading {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.specialization-dropdown .no-results {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* Specialty description in dropdown */
.specialization-dropdown .dropdown-item .specialty-name {
    font-weight: 600;
    color: #1f2937;
}

.specialization-dropdown .dropdown-item .specialty-description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.specialization-dropdown .dropdown-item:hover .specialty-name {
    color: #1f2937;
}

.specialization-dropdown .dropdown-item:hover .specialty-description {
    color: #4b5563;
}

.specialization-dropdown .dropdown-item.highlighted .specialty-name,
.specialization-dropdown .dropdown-item.highlighted .specialty-description {
    color: white;
}

/* Scrollbar styling for specialization dropdown */
.specialization-dropdown::-webkit-scrollbar {
    width: 6px;
}

.specialization-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.specialization-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.specialization-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation for dropdown appearance */
.specialization-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .specialization-dropdown {
        max-height: 250px;
    }
    
    .specialization-dropdown .dropdown-item {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .specialization-input-container input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px 14px;
    }
}

/* Focus trap for accessibility */
.specialization-dropdown .dropdown-item:focus {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
    background-color: #3b82f6;
    color: white;
}

/* ================================================
   SERVICES DROPDOWN SPECIFIC STYLES (MULTI-SELECT)
   ================================================ */

/* Services dropdown container */
.services-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

/* Services dropdown items */
.services-dropdown .dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.services-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.services-dropdown .dropdown-item:hover {
    background-color: #f8fafc;
    color: #1f2937;
}

.services-dropdown .dropdown-item.highlighted {
    background-color: #3b82f6;
    color: white;
}

.services-dropdown .dropdown-item.selected {
    background-color: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.services-dropdown .dropdown-item.selected:hover {
    background-color: #d1fae5;
}

.services-dropdown .dropdown-item.selected.highlighted {
    background-color: #059669;
    color: white;
}

/* Services input field styling */
.services-input-container {
    position: relative;
}

.services-input-container input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    color: #374151;
    background-color: white;
    transition: all 0.3s ease;
    outline: none;
}

.services-input-container input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.services-input-container input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Selection indicator */
.services-dropdown .dropdown-item .selection-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.services-dropdown .dropdown-item.selected .selection-indicator {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.services-dropdown .dropdown-item.highlighted .selection-indicator {
    border-color: white;
}

.services-dropdown .dropdown-item.selected.highlighted .selection-indicator {
    background-color: white;
    color: #059669;
}

/* Service item content */
.services-dropdown .dropdown-item .service-content {
    flex: 1;
    margin-right: 12px;
}

/* Loading and no results states */
.services-dropdown .loading,
.services-dropdown .no-results {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* Scrollbar styling for services dropdown */
.services-dropdown::-webkit-scrollbar {
    width: 6px;
}

.services-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.services-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.services-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation for services dropdown */
.services-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

/* Multi-select helper text */
.services-multi-select-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
}

/* Close button for services dropdown */
.services-dropdown .dropdown-close-btn {
    position: sticky;
    top: 0;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.services-dropdown .dropdown-close-btn .close-info {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.services-dropdown .dropdown-close-btn .close-button {
    background: #10b981;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.services-dropdown .dropdown-close-btn .close-button:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.services-dropdown .dropdown-close-btn .close-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.3);
}

/* Responsive adjustments for services dropdown */
@media (max-width: 768px) {
    .services-dropdown {
        max-height: 250px;
    }
    
    .services-dropdown .dropdown-item {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .services-input-container input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px 14px;
    }
    
    .services-dropdown .dropdown-item .selection-indicator {
        width: 18px;
        height: 18px;
    }
}
