/* Section Visibility Management Styles */

.sections-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    padding: 4px 8px;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-link:hover {
    color: #5568d3;
}

.section-category {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.section-category:last-child {
    border-bottom: none;
}

.section-category h4 {
    margin-bottom: 12px;
    color: #333;
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.section-checkbox {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition: all 0.2s;
}

.section-checkbox:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.section-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.section-checkbox label {
    cursor: pointer;
    font-size: 0.9em;
    color: #444;
    user-select: none;
}

.section-checkbox input[type="checkbox"]:checked + label {
    color: #667eea;
    font-weight: 500;
}

.section-visibility-info p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 10px;
    border-left: 3px solid #667eea;
    border-radius: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }
    
    .sections-container {
        max-height: 400px;
    }
}

/* Animation for section show/hide */
.section-visibility-fade {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.section-visibility-show {
    opacity: 1;
}

/* Loading state */
.sections-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #999;
}

.sections-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

