/* Art Category Browser - Educational Interface */

.art-browser-modal .modal-dialog {
    max-width: 900px;
}

.category-browser {
    display: flex;
    gap: 20px;
    min-height: 500px;
}

.category-sidebar {
    flex: 0 0 250px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin: 0;
}

.category-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #495057;
}

.category-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.category-btn.active {
    background: #3b82f6;
    color: white;
}

.category-content {
    flex: 1;
    padding: 1rem;
}

.category-details h5 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.category-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.subcategory-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}

.subcategory-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.subcategory-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.subcategory-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Search functionality */
.category-search {
    margin-bottom: 1rem;
}

.search-results {
    margin-top: 1rem;
}

.search-highlight {
    background: #fef3c7;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Tooltip styles */
.category-tooltip {
    position: relative;
    display: inline-block;
}

.category-tooltip .tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-tooltip .tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.category-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Enhanced select styling */
.enhanced-select-container {
    position: relative;
}

.select-help-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
}

.select-help-btn:hover {
    color: #3b82f6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .category-browser {
        flex-direction: column;
    }
    
    .category-sidebar {
        flex: none;
        max-height: 200px;
    }
    
    .subcategory-grid {
        grid-template-columns: 1fr;
    }
    
    .art-browser-modal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem;
    }
}