/* Delegate Page Configuration Styles */

.config-sections {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.config-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.section-header h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-header p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.config-form {
    padding: 1.5rem;
}

.category-selection {
    margin-bottom: 1.5rem;
}

.selection-options {
    margin-bottom: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.radio-option span {
    color: #495057;
}

.category-list {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.category-list h4 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.category-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    cursor: pointer;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.category-checkbox:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.category-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    transform: scale(1.1);
}

.category-info {
    flex: 1;
}

.category-info strong {
    display: block;
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.category-info small {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-actions {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background: #0056b3;
}

/* Preview Section */
.preview-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 2rem;
}

.preview-section h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

.preview-section > p {
    margin: 0 0 1.5rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.preview-section-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
}

.preview-section-item h3 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.preview-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-category {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    color: #495057;
    font-size: 0.9rem;
}

.preview-note {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
    padding: 0.5rem;
    text-align: center;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-checkbox {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-checkbox input[type="checkbox"] {
        margin-bottom: 0.5rem;
    }
}

/* Animation for smooth transitions */
.category-list {
    transition: all 0.3s ease;
}

.category-checkbox {
    animation: fadeIn 0.3s ease;
}

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